iOS开发之--单个页面禁止右滑返回操作

禁止右滑:

if ([self.navigationController respondsToSelector:@selector(interactivePopGestureRecognizer)]) {

        self.navigationController.interactivePopGestureRecognizer.enabled = NO;

    }

允许右滑:

if ([self.navigationController respondsToSelector:@selector(interactivePopGestureRecognizer)]) {

        self.navigationController.interactivePopGestureRecognizer.enabled = YES;

    }

 

仅做记录!

posted @ 2019-03-05 13:42  稻草人11223  阅读(2190)  评论(0编辑  收藏  举报
返回顶部