Skip to content

A UINavigationController subclass that re-enables the interactive pop gesture when the navigation bar is hidden or a custom back button is used.

License

Notifications You must be signed in to change notification settings

lookids/AHKNavigationController

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AHKNavigationController

License: MIT CocoaPods

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

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. 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:

Credits

The example project was created by @chakrit.

About

A UINavigationController subclass that re-enables the interactive pop gesture when the navigation bar is hidden or a custom back button is used.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 88.7%
  • Ruby 11.3%