继承了NavigationController,但是Push VC时有时会卡死,但是可以手势滑动。
解决方案:
@interface ZZBaseNaviController () <UINavigationControllerDelegate>
@end
@implementation ZZBaseNaviController
-
(void)viewDidLoad {
[super viewDidLoad];self.delegate = self;
}
pragma mark - UINavigationControllerDelegate
- (void)navigationController:(UINavigationController *)navigationController didShowViewController:(UIViewController *)viewController animated:(BOOL)animated {
self.interactivePopGestureRecognizer.enabled = [self.viewControllers count] > 1;
}
@end
网友评论