Enable iOS7 swipe-to-back when custom back button is set.
SwipeBack plays with iOS native gesture recognizers, so you can also use it to disable swipe-to-back feature.
Use CocoaPods.
platform :ios, '7.0'
pod 'SwipeBack', '~> 1.1'
Just install SwipeBack with CocoaPods. Your application now supports swipe-to-back feature.
You can set swipeBackEnabled
for a specific UINavigationController
. Default value is YES
.
#import <SwipeBack/SwipeBack.h>
// ...
- (void)viewWillAppear:(BOOL)animated
{
self.navigationController.swipeBackEnabled = NO;
}
SwipeBack is under MIT license. See LICENSE for more info.