2

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 Answers 3

5

As sha stated:

MyViewController *myViewController = [[MyViewController alloc] init]; UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController:myViewController]; [[self navigationController] presentModalViewController:navController animated:YES]; 
Sign up to request clarification or add additional context in comments.

1 Comment

presentModalViewController is deprecated as of iOS6. See stackoverflow.com/questions/12507455/…
4

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

[parent presentModalViewController:myNavigationController animated:YES]; 

Comments

2

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

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.