1. 程式人生 > >IOS 取消右滑返回

IOS 取消右滑返回

if ([self.navigationController respondsToSelector:@selector(interactivePopGestureRecognizer)]) {
    self.navigationController.interactivePopGestureRecognizer.enabled = NO;
}