0

I have updated to IOS 13 and now, I am not able to use left swipe to go to previous view controller in navigation controller.

Can you suggest how to solve that issue?

Thanks

Hindu
  • 2,844
  • 22
  • 41
  • Could you provide more details? Also see: https://stackoverflow.com/questions/34942571/how-to-enable-back-left-swipe-gesture-in-uinavigationcontroller-after-setting-le – Yanis Sep 25 '19 at 12:25
  • I have tried answer of above post but it is not working. I am getting that issue in IOS 13 while IOS 12, it is working – Hindu Sep 25 '19 at 13:00

1 Answers1

0

If you struggle displaying UINavigationController within a modal, You can try this:

-(void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];

    self.navigationController.interactivePopGestureRecognizer.delegate = self;
}

- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldBeRequiredToFailByGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer {
    return gestureRecognizer == self.navigationController.interactivePopGestureRecognizer;
}
Stphane
  • 3,276
  • 5
  • 31
  • 41
Yanis
  • 149
  • 1
  • 5
  • I think, it is due to simulator issue (iPhone 11) while it is working in iPhone 11 pro simulator. – Hindu Oct 12 '19 at 14:43