解决方法
或者你可以使用UINavigationController的委托方法.当您按下VC的后退按钮时,将调用方法
willShowViewController
.
- (void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated;