views:

30

answers:

1

I need to show a modal view controller when users click a info button on the top right of my application.

+2  A: 

Add an action which you link to a rightBarButtonItem in your navigation controller, or toolbar, whatever you're using -- wherever you want to put it. Anyway, when you set up your button, you want to make sure that when the user presses it, it calls your action.

In the action, you need to create an instance of another view controller which references your modal view, and you want to tell your nav controller to presentModalViewController:animated: your view controller you just created.

Doing this, your modal view will pop up and display.

jer
How do I reference my nav controller?
pki
From your view controller, the easy way is to call `self.navigationController`
jer