In my app, I've got a mainViewController that I'm trying to use for holding and controlling a couple of main view for my app. I first loaded up a splash screen, but then am wanting to have it so that when a user taps on the splash screen, they are taken to the main menu.
I've got the splash screen part working fine, but I'm having trouble with the NavigationController part.
[splashView.view removeFromSuperview];
mainMenu = [[menuScreenViewController alloc] initWithNibName:@"menuScreenViewController" bundle:nil]; mainMenu.title = @"Menu"; mainNavController = [[UINavigationController alloc] init]; [mainNavController pushViewController:mainMenu animated:NO];
[MAINVC.view addSubview:mainNavController.view];
[mainMenu release]; [mainNavController release];
[splashView release];
(MAINVC is defined elsewhere to be my main view controller).
Anyway, when I do this, I get the navigation controller with the title 'Menu', but the view contained in the mainMenu view controller do not show up in the navigation controller.
If I simply add the mainMenu's view ass a subview of MAINVC.view, it shows up correctly.
Any suggestions on how to get it to show up in my navigation controller?