iOS 禁止单个页面的侧滑返回

// 禁止侧滑返回
id traget = self.navigationController.interactivePopGestureRecognizer.delegate;

UIPanGestureRecognizer * pan = [[UIPanGestureRecognizer alloc]initWithTarget:traget action:nil];

[self.view addGestureRecognizer:pan];

你可能感兴趣的:(iOS 禁止单个页面的侧滑返回)