https://github.com/fastred/ahknavigationcontroller
A UINavigationController subclass that re-enables the interactive pop gesture when the navigation bar is hidden or a custom back button is used.
https://github.com/fastred/ahknavigationcontroller
Last synced: about 1 year ago
JSON representation
A UINavigationController subclass that re-enables the interactive pop gesture when the navigation bar is hidden or a custom back button is used.
- Host: GitHub
- URL: https://github.com/fastred/ahknavigationcontroller
- Owner: fastred
- License: mit
- Created: 2014-05-26T05:12:33.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2017-07-06T05:13:08.000Z (about 9 years ago)
- Last Synced: 2025-06-08T05:07:26.007Z (about 1 year ago)
- Language: Objective-C
- Homepage: http://holko.pl/ios/2014/04/06/interactive-pop-gesture/
- Size: 267 KB
- Stars: 235
- Watchers: 8
- Forks: 37
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AHKNavigationController
[](https://github.com/fastred/AHKNavigationController/blob/master/LICENSE)
[](https://github.com/fastred/AHKNavigationController)
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][0]
## Demo
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.
## Requirements
* iOS 7
* ARC enabled
## Installation
AHKNavigationController is available through [CocoaPods](http://cocoapods.org). 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.
## Author
Arkadiusz Holko:
* [Blog](http://holko.pl/)
* [@arekholko on Twitter](https://twitter.com/arekholko)
## Credits
The example project was created by [@chakrit](https://github.com/chakrit).
[0]: http://holko.pl/ios/2014/04/06/interactive-pop-gesture/