XLPopGesture
XLPopGesture copied to clipboard
XLPopGesture
An UINavigationController's category to enable fullscreen pop gesture in an iOS7+ system style with AOP.
Overview
Design ideas come from FDFullscreenPopGesture and MVVMReactiveCocoa
Thanks for sharing.
Usage
AOP, just add 2 files and no need for any setups, all navigation controllers will be able to use fullscreen pop gesture automatically.
To disable this pop gesture of a view controller:
viewController.xl_prefersDisablePop = YES;
To hidden the navigationBar of a view controller:
viewController.xl_prefersNavigationBarHidden = YES;
To close the Pop effects of a navigationController:
navigationController.xl_prefersOpenPopEffects = NO;
TabbarItem will be hidden when push ViewController,if you do not want this:
navigationController.xl_prefersHiddenTabBar = NO;
Installation
Use CocoaPods
pod 'XLPopGesture'
#License
MIT