How to disable back swipe gesture in UINavigationController on iOS 7-open source projects thebird/Swipe


If you want to manage swipe back feature for specific navigation controllers, consider using SwipeBack.

With this, you can set navigationController.swipeBackEnabled = NO.

For example:


- (void)viewWillAppear:(BOOL)animated
    self.navigationController.swipeBackEnabled = NO;

It can be installed via CocoaPods.

pod 'SwipeBack', '~> 1.0'

I appologize for lack of explanation.