uitabbarcontroller

Changing VC issue in Swift. How to pass data between views in tab bar controller?

谁都会走 提交于 2019-12-17 04:07:25
问题 I have four ViewController, I don't use an UITabbedbar because It's more difficult to customize. I use modal segue but I think the memory consumption is excessive. this is a screen shot of my first and second VC. What I have to use to change View correctly? That's the code I use : override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject!) { if (segue.identifier == "second") { let secondVC = segue.destinationViewController as SecondViewController; } } 回答1: From your Storyboard

How to implement tab bar controller with navigation controller in right way

雨燕双飞 提交于 2019-12-17 02:42:50
问题 I am using Storyboard and Xcode 6. I have next controllers and scenes in my Storyboard: UINavigationController that has HomeViewController as a root. HomeViewController has a button that Show (e.g. Push) UITabBarController . UITabBarController has 4 UIViewControllers . But my problem that after I Show UITabBarController there are no Navigation Bars in 4 UIViewControllers . But I supposed that if I Show (e.g. Push) UITabBarController then it should has embedded navigation controller that is

Changing Tint / Background color of UITabBar

空扰寡人 提交于 2019-12-17 01:34:14
问题 The UINavigationBar and UISearchBar both have a tintColor property that allows you to change the tint color (surprising, I know) of both of those items. I want to do the same thing to the UITabBar in my application, but have found now way to change it from the default black color. Any ideas? 回答1: I have been able to make it work by subclassing a UITabBarController and using private classes: @interface UITabBarController (private) - (UITabBar *)tabBar; @end @implementation

Refresh the entire iOS app [closed]

房东的猫 提交于 2019-12-16 18:05:40
问题 This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 7 years ago . I working on an app with tabs which shows info about a person in a database. In one of my tabs there is a textbox through which a user can search for a

Tab Bar disappears below the bottom of the screen

喜欢而已 提交于 2019-12-14 03:58:08
问题 In my application I'm using a Navigation Controller to push one view that loads a Tab Bar Controller and a custom Navigation Bar as well. The problem is that the Tab Bar disappears below the bottom of the screen, and I don't know what's causing the problem. If I load a simple Tab Bar in the next view, it positions itself correctly... but what I need is a Tab Bar Controller, and in that case the Tab Bar disappears below the bottom. I have tried changing the view and size properties of the Tab

iOS 11 only crash issue - when I tap a tab bar App is crashing

此生再无相见时 提交于 2019-12-14 03:29:01
问题 I am getting following crash error when I tap a particular tab bar only from hometabviewcontroller. This Happens only in iOS 11. Please help me to solve this issue. 2017-10-23 16:48:57.000890+0400 FixtrProvider[2520:910402] desc: -[UIView refreshControl]: unrecognized selector sent to instance 0x10af090d0 2017-10-23 16:48:57.001223+0400 FixtrProvider[2520:910402] name: NSInvalidArgumentException 2017-10-23 16:48:57.001308+0400 FixtrProvider[2520:910402] user info: (null) 2017-10-23 16:48:57

Change Tab view after certain time interval received as response from Server request

泄露秘密 提交于 2019-12-14 03:07:23
问题 In an application having UITabBarController , I want to implement following scenario: When user is on 'X' Tab , he/she does something & then move to another tabs. And again he/she comes back to 'X' tab( say after 5minutes-> this is important as I may change 5min to 10min in future ), then I want to show some message like your 'Session is expired'. Whenever user comes back 'X' Tab, it need to make server request to get response code. Depending upon that I want to show the pop-up 'Session is

How to change default ViewController of UITabBarController

时光总嘲笑我的痴心妄想 提交于 2019-12-13 20:58:31
问题 I create basic TabBarController with 2 ViewControllers . It worked but it have bug and i want something about it. Problem1. When I run (default ViewController is FirstViewController ) name of SecondViewController in TabBar is not appear. I want following this picture. Problem2. In my code default view is FirstViewController . If I want to set default view is SecondViewController by Same Tab Bar( FirstView Tab : Left ,and SecondView Tab : Right) following this picture. How to resolve it. This

uitabbarcontroller storyboard: connecting viewcontroller that's already connected to another uitabbarctrl

。_饼干妹妹 提交于 2019-12-13 20:31:38
问题 I'm trying to reuse some of my view in my storyboard. I start with a uitabbarcontroller and have some views connected for each tab. Now i dropped a NEW uitabbarcontroller into the storyboard and I want to connect one of it's tabs to the SAME viewcontroller that is connected to the original tabbar. Can you 'reuse' viewcontrollers in the storyboard like that? Or do you have to create new viewcontrollers? I assume the former works, as I'm able to do it else where in the storyboard by choosing

How do I subclass a UITabbarcontroller using storyboards?

左心房为你撑大大i 提交于 2019-12-13 18:17:10
问题 I have a tabbar application using storyboards. Tab 1 is a UIViewController with Mapview & Tab 2 is a UITableViewController. The appdelegate calls for a web fetch (via a custom class) and takes that web response and pareses it (via a custom class) and then puts the info in a CD-db (via a custom class). MapVC fetches results from the CD-db and populates an NSMutableArray (property) to be looped thru. The array contains a custom CD-db object with 2 coordinates which are used to create an