alessandrostone / AHKNavigationController

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

Home Page:http://holko.pl/ios/2014/04/06/interactive-pop-gesture/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

http://holko.pl/ios/2014/04/06/interactive-pop-gesture/

License:MIT License


Languages

Language:Objective-C 90.1%Language:Ruby 9.9%