uitabbarcontroller

How can I have my iPhone app start with a specific screen showing?

不羁的心 提交于 2019-12-12 09:42:50
问题 I have a big app with lots of screens, all arranged in a hierarchy, with a UITabBarController at the top, UINavigationControllers below that, and then UIView Controllers below those, maybe with a modal controller somewhere thrown in for good measure. The user is allowed to pick a start screen from a list. Once selected, next time the app is started it will start from the specified screen and all the navigation will work as if they had navigated there themselves. Since I can't subclass

How to Customize the tabbarcontroller

心已入冬 提交于 2019-12-12 09:27:14
问题 I need to add image to the tabbarcontroller. I included navigationcontroller as a tabbar item in tabbarcontroller. So how can i add image to the tabbarcontroller. tabBarController = [[UITabBarController alloc] init]; tabBarController.moreNavigationController.navigationBar.barStyle = UIBarStyleBlackOpaque; tabBarController.moreNavigationController.topViewController.view.backgroundColor=[UIColor clearColor]; tabBarController.delegate=self; Dashboard_iPhone *dash = [[Dashboard_iPhone alloc] init

Get tabbarcontroller from another view on my storyboard

我只是一个虾纸丫 提交于 2019-12-12 07:59:48
问题 In my Delegate i am trying to select my TabBarController so that i can style it with a different background. However the problem is that my TabBarController is not located on the rootView.. My current code: UITabBarController *tabBarController = (UITabBarController *)self.window.rootViewController; UITabBar *tabBar = tabBarController.tabBar; UITabBarItem *tabBarItem1 = [tabBar.items objectAtIndex:0]; UITabBarItem *tabBarItem2 = [tabBar.items objectAtIndex:1]; In my interface builder i have my

Splash Screen before TabBarController

喜你入骨 提交于 2019-12-12 07:38:53
问题 I am a beginner of iPhone developer and I am working on my first apps. Actually, I already created a Tab Bar application well but I would like to add the Splash Screen when run the apps. I found a exactly question at Loading a Welcome Screen(Splash Screen) before TabBarController But when I try to put in my code, the splash screen doesn't load and just keep showing my tabbarcontroller. I created a SplashViewController.h, SplashViewController.m and SplashView.xib and following is my code,

custom TabBar loses TabBarItem images

谁都会走 提交于 2019-12-12 06:57:19
问题 I have made a custom UITabBar that is working very well, but I introduced a change to navigation and now i am having some serious issues. Here is what I have: General Setup TabBarController NavbarController1 - TabBarItem1 Links to: PeopleView NavbarController2 - TabBarItem2 Links to: ContentView NavbarController3 - TabBarItem3 Links to: ContentView //Same VC as TabBaritem 2. App Delegate - In my didFinishLaunchingWithOptions method I call a customizeTabBar method as follows -(void)

Tab bar item not showing

只愿长相守 提交于 2019-12-12 06:19:07
问题 if(!isUserLoggedIn){ var loginViewController = mainStoryBoard.instantiateViewControllerWithIdentifier("loginView") as! LoginViewController window!.rootViewController = loginViewController window!.makeKeyAndVisible() }else{ var mainViewController = mainStoryBoard.instantiateViewControllerWithIdentifier("mainView") as! FirstViewController var myDealsViewController = mainStoryBoard.instantiateViewControllerWithIdentifier("myDealsViewController") as!MyDealsViewController var

How to programmatically change UITabBar selected index after Dismiss?

南笙酒味 提交于 2019-12-12 05:14:41
问题 I have a modal UIViewController over the UITabBarViewcontroller and i want to dismiss it, then change the selected item of my tab bar. I'm trying to accomplish it by setting the selectedIndex inside dismiss' completion: self.dismiss(animated: true, completion: { self.tabBarController?.selectedIndex = 2 }) I apologize if this is a newbie question, i just couldn't find the solution to this anywhere. Thanks in advance for every answer, clue or old similar questions that you send me :) 回答1: I was

Programmatically switch parent tabs from modal view controller

空扰寡人 提交于 2019-12-12 05:12:05
问题 In my app, you can add a photo using a modal view. When the modal view gets dismissed, I want to automatically switch the tab bar controller to the second tab (the photo viewer screen). I found this answer about how to programmatically switch tabs, but I'm not sure where to put this code in the modal view controller. 回答1: You can create a delegate protocol and assign a delegate property to the viewController being presented modally, and make it inform its delegate when it's about to call

Splashscreen to check update on top of tabbarcontroller

时光怂恿深爱的人放手 提交于 2019-12-12 04:45:51
问题 I tried to load a splashscreen on top of a tabbarcontroller in my application. No apple HIG references please, the aim of this splashscreen is to check for connectivity, then check for content update. What's would be done in case of update Splashscreen -> update view -> tabbarcontroller In case of nothing Splashscreen -> tabbarcontroller I present the update view modaly from the splashscreen view controller. I'm unable to have the splashscreen loaded each time the app is launched and when the

Why is moving in between the tabs, reinitialising the songs.?

孤街醉人 提交于 2019-12-12 04:38:26
问题 I have a online radio player with tab footer functionality. The first tab contains player, second the website and third some message box. Now whats happening is that when I play the song in first footer, and then going to another footer, and coming back to first footer, the song is getting started again. Here is the code: FirstViewController.m #import "FirstViewController.h" CM_EXPORT const CMTime kCMTimeZero; @interface FirstViewController () @end @implementation FirstViewController