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