-1

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.

Rayfleck
  • 12,116
  • 8
  • 48
  • 74
jessy
  • 491
  • 3
  • 7
  • 19
  • 1
    It 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 Answers1

1

To start with you should read the following:

View Controller Programming Guide

Abusing UIViewControllers

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
  • 1
    The 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