I have an UIViewController in that I have a navigation bar and a table, now I want to navigate from this view to another view on selection of the table row.
How can I do that?
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.
First of all add the new UIViewController to your application by right clicking in files and groups section and Clicking “New File” option and name it SecondViewController.
Make sure you add an XIB by selecting “With XIB for user interface” option while creating the SecondViewController
Suppose you want to push the new view on button click then add a button to you FirstViewController and add the following code on its button’s TouchUpInside event:
if you are using ARC then remove
[secondView release];.Let me know if you need more help.
Hope this helps.