Scenario: I have a set of objects. I wish to display them using a UITableView when the device is in Portrait mode, and in UICollectionView when it is in landscape. To accomplish this, I want to use a UIViewController as a container, and give it two child view controllers (one each for the UICollectionViewController and UITableViewController). I expect the orientation to change often, resulting in the parent swapping back and forth between the two child controllers.
In the View Controller Programming Guide for iOS (2012-12-13), on pages 117 and 118 where they are talking about the transitions between children, they remove the child view controller from the parent whenever the child's view is removed from the view hierarchy. (See Listing 14-3 in particular.)
Is this necessary for memory or whatever other reasons, or is it ok to keep both child view controllers associated with the parent, and just flip back and forth between the views? Are there performance advantages to either technique?