i am having vie controller nib file with its classes .h and .m and i want to add this view as a sub view to my rootview controller innavigation controller
how to add it..
i want a syntax to this ..
please help me….
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.
Here is the typical code that I use to add a new view controller to my navigation controller:
Substitute in your own view controller class name for NextViewController above, and your own NIB file name in place of “NextViewController” above.
In my applications, the navigation controller is defined and created in my application delegate class, so appDelegate above is arrived at with the following statement:
And you would of course substitute your app delegate class name in place of MyAppDelegate.