iOS开发-在某个页面禁用侧滑返回功能

2020-03-27  本文已影响0人  吃不胖的瘦子呀
- (void)viewDidLoad {
    [super viewDidLoad];
    id traget = self.navigationController.interactivePopGestureRecognizer.delegate;
    UIPanGestureRecognizer * pan = [[UIPanGestureRecognizer alloc]initWithTarget:traget action:nil];
    [self.view addGestureRecognizer:pan];
}
上一篇 下一篇

猜你喜欢

热点阅读