I\'m just dipping my feet for the first time into iOS development, and one of the first things I\'ve had to do is implement a custom container view controller - lets call it
I was wondering about this question too. I watched Session 102 of the WWDC 2011 videos and Mr. View Controller, Bruce D. Nilo, said this:
viewWillAppear:,viewDidAppear:, etc have nothing to do withaddChildViewController:. All thataddChildViewController:does is to say "This view controller is a child of that one" and it has nothing to do with view appearance. When they get called is associated with when views move in and out of the window hierarchy.
So it seems that the call to addChildViewController: does very little. The side effects of the call are the important part. They come from the parentViewController and childViewControllers relationships. Here are some of the side effects that I know:
transitionFromViewController:toViewController:… where both VCs need to have the same parentnavigationController, tabBarController, etc properties