What's the "right" way to use ContainerViewController? Should you subclass it or should you use it with composition? Are there benefits doing it one way vs the other? I think I've usually seen it used with composition since subclassing requires you to hook into the view lifecycle methods at just the right moment to populate the managedChildren property. We should improve our documentation with the tradeoffs of each approach, and make our preferred approach known.
What's the "right" way to use
ContainerViewController
? Should you subclass it or should you use it with composition? Are there benefits doing it one way vs the other? I think I've usually seen it used with composition since subclassing requires you to hook into the view lifecycle methods at just the right moment to populate themanagedChildren
property. We should improve our documentation with the tradeoffs of each approach, and make our preferred approach known.