iOS开发如何禁止系统的滑动返回手势
2017-02-23 本文已影响92人
王小王_2016
id traget = self.navigationController.interactivePopGestureRecognizer.delegate;
UIPanGestureRecognizer * pan = [[UIPanGestureRecognizer alloc]initWithTarget:traget action:nil];
[self.view addGestureRecognizer:pan];
直接将代码拷贝到viewDidLoad总就行了,