Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>That's probably because Your rootViewController (for your main UIWindow) is set to a Navigationcontroller instead of your TabBar. If you don't want the Tabbar to go away just set it as your root view controller</p> <p>Do the following in appDidFinishLaunching in your AppDelegate</p> <pre><code>LoginViewController *loginViewController = [[FirstViewController alloc] init]; UINavigationController *loginNavigationController = [[UINavigationController alloc] loginViewController]; [firstViewController release]; self.window.rootViewController = loginNavigationController; </code></pre> <p>Then in your Login Page:</p> <pre><code>- (void)loginSuccessfull { FirstViewController *firstViewController = [[FirstViewController alloc] init]; UINavigationController *firstNavigationController = [[UINavigationController alloc] initWithViewController:firstViewController]; [firstViewController release]; SecondViewController *secondViewController = [[SecondViewController alloc] init]; UINavigationController *secondNavigationController = [[UINavigationController alloc] initWithViewController:secondViewController]; [secondViewController release]; UITabBarController *tabBarController = [[UITabBarController alloc] init]; [tabBarController setViewControllers: [NSArray arrayWithObjects:firstNavigationController, secondNavigationController, nil]]; [firstNavigationController release]; [secondNavigationController release]; [self.navigationController pushViewController:tabBarController]; [tabBarController release]; </code></pre> <p>}</p> <p>If you still need the navigation functionality just wrap your viewControllers inside a UINavigationController, and add the serounding navigationController to the tabBar, instead of the UIViewcontroller</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload