I know this is kind of repetitive question in SO, but I'm still unable to figure it out. The animation is not working when the app goes to background and then comes back up. The first time the app launchs I'm able to get the push/pop animation between the views, but once the app goes to background, it stops animating anymore.
I have created a custom navigation controller class extending UINavigationController
and written the popViewControllerAnimated
method in it.
- (UIViewController *)popViewControllerAnimated:(BOOL)animated {
UIViewController* viewController = [super popViewControllerAnimated:animated];
UIViewController* nextViewControler = [[self viewControllers] lastObject];
[nextViewControler viewWillAppear:animated];
[viewController viewWillDisappear:animated];
return viewController;
}
Any help is appreciated.
You might want to try just using the UINavigationControllerDelegate protocol to cause viewWillAppear/viewDidAppear to be called. For more details see:
http://www.idev101.com/code/User_Interface/UINavigationController/viewWillAppear.html