Your rootViewController acts as a container view controller.
In iOS 5.0 and later, custom subclasses of the UIViewController can now act as container view controllers. The UINavigationController and UITabBarController classes are examples of container view controllers provided by UIKit. The idea of โโa container controller is that it controls the presentation of content from its contained view controllers, also known as its child view controllers. Child content can be presented as is or in combination with other other user views controlled by the container view controller.
What you do is implement your own hierarchy of views, so you are responsible for passing UILifecycle-Events through this hierarchy. iOS> = 5.0 supports the creation of such a container viewControllers, offering
- (void)addChildViewController:(UIViewController *)childController - (BOOL)automaticallyForwardAppearanceAndRotationMethodsToChildViewControllers
(and much more). For iOS <5.0, you unfortunately have to do this manually.
Ben-g source share