Swipe back pop animation, not just trigger screen edge!
- add
pod CHXSwipeBackPopAnimator
your pod file - run
pod update --no-repo-update --verbose
- Edit you
UINavigationController
file
#import <CHXSwipeBackPopAnimator/CHXSwipeBackPopAnimator.h>
...
@property (nonatomic, strong) CHXPopAnimatorCarrier *carrier;
...
self.carrier = [[CHXPopAnimatorCarrier alloc] initWithNavigationController:self];
self.delegate = self.carrier;
- Temporaryshield
- (void)viewWillAppear:(BOOL)animated {
[super viewWillAppear:animated];
[self.navigationController chx_disableInteractivePopGestureRecognizerButPreventScreenEdge:NO];
}
- (void)viewWillDisappear:(BOOL)animated {
[super viewWillDisappear:animated];
[self.navigationController chx_enableInteractivePopGestureRecognizer];
}
- iOS 7
- ARC