I am building a UIViewController
with a XIB. In this XIB, I have placeholders (UIView
objects in the XIB) in which I place other views, from other view controllers. (By the way, I could also add these views directly, without placeholders)
I am not buiding a container view controller: I mean it's not a UINavigationController
. It's a just a "usual" view controller. Imagine for example that I have a small subview in my view for a "Facebook" logo and a counter. This "facebook view" is attached to another view controller that is called when the "Facebook view" is touched. So, the "Facebook controller" definitely needs to be a @property
of my "main" view controller.
In this situation, should I really use addChildViewController:
and all the mechanism? Or no?
Thanks!