I have an app that starts with a basic view controller at the root of my navigation controller
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.navController.viewControllers = [NSArray arrayWithObject:[self getHomeViewController]];
[[self getWindow] addSubview:self.navController.view];
[[self getWindow] makeKeyAndVisible];
return YES;
}
Once a navigation item is selected I push a tab bar controller w/ a few view controllers.
-(void)launchOptionWithTabBarController:(NSUInteger)selectedIndex
{
self.tabBarController.viewControllers = [NSArray arrayWithObjects:
[self getFirstViewController],
[self getSecondViewController],
nil];
[self.tabBarController setSelectedIndex:selectedIndex];
[self.navController pushViewController:self.tabBarController animated:YES];
}
The problem is that I now need to add another view controller on top of the one open in the tab bar controller ... and when I push one to the navigation controller like so ..
- (void)launchNewViewControllerWithArray:(NSArray *)stuff
{
self.newViewController = [self getNewViewController];
[self.navController pushViewController:self.newViewController animated:YES];
}
I no longer see the tab bar navigation (and I would prefer to see this nav w/ each item I push).
How can I modify my control flow so the tab bar nav items stay along the bottom?