Created
March 26, 2014 10:17
-
-
Save amitittyerah/9780286 to your computer and use it in GitHub Desktop.
Dummy navigation controllers within a tab bar controller
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions | |
{ | |
... | |
self.tabBarController = [[UITabBarController alloc] init]; | |
UIViewController *homeViewController = [[HomeViewController alloc] init]; | |
UINavigationController *homeNavigationController = [[UINavigationController alloc] initWithRootViewController:homeViewController]; | |
self.tabBarController.viewControllers =[NSArray arrayWithObjects:homeNavigationController, nil]; | |
self.window.rootViewController = tabBarController; | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment