An UINavigationController's category to enable fullscreen pop gesture in an iOS7+ system style with AOP.
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:
- (BOOL)xl_prefersDisablePop
{
return YES;
}
To hidden the navigationBar of a view controller:
- (BOOL)xl_prefersNavigationBarHidden
{
return YES;
}
#Installation
Use CocoaPods
pod 'XLPopGesture'
#License
MIT