tags:

views:

50

answers:

3

Hi, I am new to modal views and cant seem to get a navigation view display in a modal view.

How do I build a navigation view in the modal view?

+3  A: 

You can use a navigation controller as a modal view controller.

[parent presentModalViewController:myNavigationController animated:YES];
jtbandes
+1  A: 

You create a UINavigrationController, then add UIViewController to it, then you present navigation controller with presentModalViewController

sha
A: 

As sha stated:

MyViewController *myViewController = [[MyViewController alloc] init];
UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController:myViewController];
[[self navigationController] presentModalViewController:navController animated:YES];
testing