Loading navigation controllers after another view
I am trying to load a navigation controller after a home page, so on the home page I have an action that is triggered when a icon is clicked:
- (IBAction)showContact:(id)sender {
ContactViewController *Contactcontroller = [[[ContactViewController alloc] initWithNibName:@"ContactView" bundle:nil] autorelease];
Contactcontroller.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
[self presentModalViewController:Contactcontroller animated:YES];
}
This then loads the navigation controller view, but in interface builder I can't set the view as navigation controller, so have added a view along side the nav controller, but how would I load this into the view?开发者_Go百科
Sorry if newbie question...
In the end I created a new project and had it all as a navigation based app, this way on the home screen I managed to hide the Navigation Controller, and then pushed the new views in. This seemed the easiest way to achieve what I wanted.
精彩评论