I need to know how to add one view contoller as a child of another view controller in objective-c. As of now I am presenting a view controller as a modal of the rootview controller. But I want to change it now. I have 2 view controllers which I am presenting as modals of root view controller. But how can I present them in a different way? How does this parent-children concept work? Please give me some references.
Asked
Active
Viewed 7,655 times
-1
-
1It might help if you were a little more specific about what you're trying to achieve. There are a number of ways of presenting views in iOS. If you can cite some examples we may be able to provide links to tutorials that address your needs specifically. – Will Pragnell Feb 08 '12 at 17:54
1 Answers
1
To start with you should read the following:
View Controller Programming Guide
I believe that between the two of them you should be able to learn most, if not all, of what you need to learn about UIViewControllers and view hierarchys.

Will Pragnell
- 3,073
- 1
- 20
- 21
-
1The second link is outdated and not very relevant anymore due to the concept of child view controllers introduced in iOS 5. See http://developer.apple.com/library/ios/#featuredarticles/ViewControllerPGforiPhoneOS/CreatingCustomContainerViewControllers/CreatingCustomContainerViewControllers.html – JRG-Developer Mar 27 '13 at 17:39