A UINavigationController
subclass that re-enables the interactive pop gesture (UIScreenEdgePanGestureRecognizer
instance) when the navigation bar is hidden or a custom back button is used.
The solution is explained in detail in a blog post: Interactive Pop Gesture with Custom Back Button or Hidden Navigation Bar
To run the example project: clone the repo, and run pod install
from the Example directory first. Alternatively, run pod try AHKNavigationController
from the command line.
- iOS 7
- ARC enabled
AHKNavigationController is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "AHKNavigationController"
and set your navigation controller to be an instance of AHKNavigationController
or its subclass.
If you don't use CocoaPods, you can simply copy the files from Classes/
directory to your project.
Arkadiusz Holko:
The example project was created by @chakrit.