首页 > 代码库 > 屏蔽ios7中某个页面的默认手势滑回返回

屏蔽ios7中某个页面的默认手势滑回返回

- (void)viewWillDisappear:(BOOL)animated {
[super viewWillDisappear:YES];
self.navigationController.interactivePopGestureRecognizer.enabled = YES;
}

- (void)viewDidAppear:(BOOL)animated {
[super viewDidAppear:YES];
self.navigationController.interactivePopGestureRecognizer.enabled = NO;
}

屏蔽ios7中某个页面的默认手势滑回返回