I'm making a custom thing that should work similarly to UITabBarController—a UIViewController that manages sub-ViewControllers. The parent UIViewController should manage adding and removing the views of the child UIViewControllers.
It seems if I'm doing things this way I need to call [UIViewController viewWillAppear]
and friends manually. Is this the case? Is there a better way to do this?
Why are you doing this? Why not use UITabBarController?
Anyway... I would try with something like this
Never tried it, though.
Maybe you want to create a singleton with these methods:
where by calling
switchToViewController: (int) controller
you change the view controllers.