Whenever I pop a view controller manually, viewWillAppear
doesn\'t get called on the previous UIViewController
that now appears.
These are
You cannot have a UITabBarController
"inside" of a UINavigationController
. That's probably why some of the viewWillAppear
methods aren't being called. Take a look here:
Tab bar controller inside a navigation controller, or sharing a navigation root view
I have created this class that solves your problem. I have used it in many of my own projects.
Just set it as a delegate of your navigation controller, and implement simple one or two methods in your view controller - that will get called when the view is about to be shown or has been shown via NavigationController
Here's the GIST showing the code