新建一个BaseNavigationController 继承 UINavigationController
<UIGestureRecognizerDelegate>
self.interactivePopGestureRecognizer.delegate = self;
- (BOOL)gestureRecognizerShouldBegin:(UIGestureRecognizer*)gestureRecognizer {
if (self.viewControllers.count == 1){
returnNO;
}
return YES;
}
网友评论