uitabbarcontroller

GUI is stuck with uibackgroundmodes= voip, audio

℡╲_俬逩灬. 提交于 2020-01-04 04:13:05
问题 I have tabbar-based application. When I put in my plist UIBackgroundModes (my application is supposed to support voip), the GUI doesn't load. It sucks on Splash screen and doesn't load the first tab view. When i remove the UIBackgroundModes property from info.plist, it works fine. More than that, pressing the home button when it stuck does nothing. Did somebody encountered a similar problem? (The problem exists on simulator) Thanks, Nava 回答1: It appears, that the problem happens on Simulator

UITabBarController with diffent storyboard file for each ViewController of the TabBar

别来无恙 提交于 2020-01-03 17:35:13
问题 My team is developing an application that has a UITabBarController. We are using Storyboard to develop the interfaces and the flows. Since we are a team, we cannot put all flow in just one storyboard, because it will cause in problems with syncing with SVN. So, the solution is to put each tab`s flow in one different storyboard file. The connection between storyboards is not the problem when I can create an object to do the connection (a button, for example) as we can see in this tutorial. But

ios Pass data from TabbarController to ViewController in Storyboard

家住魔仙堡 提交于 2020-01-03 05:44:07
问题 I have a TabBarController with 4 tabs setup in storboard editor. When I select the 4th tab, I want to send a string to its view controller. In my TabbarController class (named TabBarVC) I implemented the following method: - (void)tabBarController:(UITabBarController *)theTabBarController didSelectViewController:(UIViewController *)viewController { NSUInteger indexOfTab = [theTabBarController.viewControllers indexOfObject:viewController]; if(indexOfTab == 3) { SupplierListVC *slvc =

Remove mask from deselected tabs UITabBarItem Swift

。_饼干妹妹 提交于 2020-01-03 05:22:39
问题 I am trying to implement an UITabBarController with 2 UITabBarItems . I added in storyboard the TabBarController. I almost did it, but still I am blocked with 2 important issues: 1) Here is how tab bar should look: Please ignore orange button, that is not a tabItem. So I put 2 tabItems , and I want to keep white images for both tabs even if one of them is selected. I checked a lot of times with tintColor , barTintColor and no success. Also I tried to set tabBarItem in ViewController: override

How to make viewDidLoad method of ViewController call only once?

老子叫甜甜 提交于 2020-01-03 02:55:11
问题 I created a Container View in my application. The container view loads other UIViewController when user tabs on a UITableviewCell and other UIViewController gets loaded inside the Container View. I tried testing by inserting log messages on other ViewController class and found out each time viewDidLoad and ViewDidAppear method gets called which states those class gets instantiated everytime on cell tab. But while studying about container view on the apple docs https://developer.apple.com

TabBarController in NavigationController does not show TabBar in viewControllers

微笑、不失礼 提交于 2020-01-03 02:54:11
问题 I have a UITabBarController to whose controllers I would like to attach navigation. So I inserted the NavigationController as the entry controller, and the tabBarController as its root. All seems working fine, but for the tabBar. Basically it does not show, albeit the StoryBoard I attach seems to say differently. I also attach the Account Screen not showing any navigation bar nor, of course, any back button. Thanks, Fabrizio 回答1: Just a quick answer. I think you should put

How to switch to another tab of UITabBar without touching a tab?

大城市里の小女人 提交于 2020-01-03 02:47:15
问题 I have a tab bar setup and I want to be able to let the user change options and after the last one is selected or by pressing a button on the view, be able to automatically switch to another tab. Simply, I have 4 tabs setup and on one, I pick an option or press a button and I want it to switch to the other tab. I have the tab bar on the main window and 4 separate views, each as a nib file. 回答1: Are you sure you want a TabBarController here and not a NavigationController? For TabBars, the

iPhone View doesn't update with UITabBarController when changing tabs programmatically

南笙酒味 提交于 2020-01-02 23:46:09
问题 Setup a new iPhone window based project with a UITabBarController and connect everything up in IB. Using self.tabBarController.selectedIndex = 1; you should be able to switch tabs programmatically. But, it only seems to work in certain circumstances. If you tie it to an IBAction or as the result of the image picker it works great. But, if you call it too quickly it seems to only partially work. The tab gets selected at the view is still the old view. I tried to put self.tabBarController

In iOS 7, why UITableView's contentInset has bottom value despite the UITabBarController is hidden?

家住魔仙堡 提交于 2020-01-02 21:00:27
问题 I don't know why UITableView has bottom inset automatically despite I make UITabBarController be hidden by calling [setHidden:YES] before. The view controller who has UITableView is a child of UITabBarController . I already know that automaticallyAdjustsScrollViewInsets helps any UIScrollView get proper 'contentInset' depending on status of it's container view controller. So, I expected that UITableView 's bottom contentInset will be 0 if UITabBar is hidden. But, doesn't do that. Although

How to create translucent (with content behind it) UITabBar

我怕爱的太早我们不能终老 提交于 2020-01-02 08:24:26
问题 I have subclassed UITabBar and overriden drawRect: method to make it transparent (and make it look like I need to). Problem I am having is that the view added to UITabBarController does not cover whole screen but ends 49 pixels above bottom, so even tho I have transparent tabbar, I can't see thing behind it. Is there proper way how I can set size of UIView inside UITabBarController to cover entire screen? P.S.:I know it is not good idea to show content behind tabbar. I do not want to show any