-(void) baseInteractivePopGestureRecognizerEnable:(BOOL) enable{
if ([self.navigationController respondsToSelector:@selector(interactivePopGestureRecognizer)]) {
if (enable) {
self.navigationController.interactivePopGestureRecognizer.delegate = (id<UIGestureRecognizerDelegate>)self;
self.navigationController.interactivePopGestureRecognizer.enabled = YES;
}else{
self.navigationController.interactivePopGestureRecognizer.enabled = NO;
}
}
}
版权声明:本文为博主原创文章,未经博主允许不得转载。
时间: 2024-09-28 19:19:15