简体   繁体   中英

IOS 13 + Left Swipe is not working for previous view

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

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;
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM