iOS开发笔记之在某个ViewController中禁用右滑pop手势

// 在需要禁用右滑pop手势的ViewController中加入以下代码
    id target = self.navigationController.interactivePopGestureRecognizer.delegate;
    UIPanGestureRecognizer *pan = [[UIPanGestureRecognizer alloc] initWithTarget:target action:nil];
    [self.view addGestureRecognizer:pan];

猜你喜欢

转载自blog.csdn.net/zzyeeaa/article/details/79711995