// 在需要禁用右滑pop手势的ViewController中加入以下代码
id target = self.navigationController.interactivePopGestureRecognizer.delegate;
UIPanGestureRecognizer *pan = [[UIPanGestureRecognizer alloc] initWithTarget:target action:nil];
[self.view addGestureRecognizer:pan];
iOS开发笔记之在某个ViewController中禁用右滑pop手势
最新推荐文章于 2022-12-02 16:08:28 发布