react-native-navigation的迁移库

InteractivePopGestureDelegate.m 568B

12345678910111213141516171819
  1. #import "InteractivePopGestureDelegate.h"
  2. @implementation InteractivePopGestureDelegate
  3. - (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch {
  4. if (self.navigationController.viewControllers.count < 2) {
  5. return NO;
  6. } else if (self.navigationController.navigationBarHidden) {
  7. return YES;
  8. } else if (!self.navigationController.navigationBarHidden && self.originalDelegate == nil) {
  9. return YES;
  10. } else {
  11. return [self.originalDelegate gestureRecognizer:gestureRecognizer shouldReceiveTouch:touch];
  12. }
  13. }
  14. @end