I need to show a modal view controller when users click a info button on the top right of my application.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Add an action which you link to a
rightBarButtonItemin 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.