- 方法一(不是很好用,有的能用,有的不能用)
self.navigationController?.interactivePopGestureRecognizer?.isEnabled = false
- 方法二(添加一个手势和系统返回手势造成冲突)
let obj = self.navigationController?.interactivePopGestureRecognizer?.delegate
let pan = UIPanGestureRecognizer(target: obj, action: nil)
self.view.addGestureRecognizer(pan)```