I have a application combined with TabController and UINavigationController.
When a button is pressed, I want to pop up another window with its own UINavigationController.
-(void) buttonPushed: (UIBarButtonItem *) myButton
{
MyNavigationController *controller = [[MyNavigationController alloc] initWithNibName:@"MyNavigationController" bundle:nil];
MyDelegate *appDelegate = (MyAppDelegate*) [[UIApplication sharedApplication] delegate];
[appDelegate.rootController presentModalViewController:controller animated:YES];
}
The window shows, but I got an complete blank navigation bar and I don't see my modification of title in nib file.
I guess there is something wrong when I set the nib because when I replace the navigation controller with an basic view controller one, it loads OK.
So any idea what goest wrong?