This provides an fullScreen pop and push gesture for UINavigationController.
- FullScreen pop gesture support
- FullScreen push gesture support
- Customize UINavigationBar for each single viewController support
- Customize pop and push gesture distance on the left side of the screen support
- Close pop gesture for single viewController support
- Show alert when pop viewController support
Objective-C:
#import "CHNavigationController.h"
CHNavigationController *nav = [[CHNavigationController alloc] initWithRootViewController:YourVc];
Objective-C:
[self.navigationController pushViewController:YourVc animated:YES];
Objective-C:
// Become the delegate of CHNavigationControllerDelegate protocol and, implemented protocol method, then you own left-slip to push function.
self.ch_navigationController.nav_delegate = self;
// Implementation protocol method
-(void)didLeftPush{
[self.navigationController pushViewController:YourVc animated:YES];
}
Objective-C:
self.ch_gestureEnabled = NO;
- (BOOL)didPopClick{
//alert code
return NO;
}
Objective-C:
self.ch_gestureEnabled = NO;