更新时间:2022-01-15 07:35:42
我找到了解决方案:
目标-C:
if ([self.navigationController respondsToSelector:@selector(interactivePopGestureRecognizer)]) {
self.navigationController.interactivePopGestureRecognizer.enabled = NO;
}
Swift 3+:self.navigationController?.interactivePopGestureRecognizer?.isEnabled = false