iOS开发如何禁止系统的滑动返回手势

id traget = self.navigationController.interactivePopGestureRecognizer.delegate;
UIPanGestureRecognizer * pan = [[UIPanGestureRecognizer alloc]initWithTarget:traget action:nil];
[self.view addGestureRecognizer:pan];
直接将代码拷贝到viewDidLoad总就行了,

你可能感兴趣的:(iOS开发如何禁止系统的滑动返回手势)