Swipe back - interactivePopGestureRecognizer not working

后端 未结 2 1136
难免孤独
难免孤独 2021-02-05 09:41

I have screens like this photo. HomeViewController will push to maintabbar, and a tabbar item will push to detailScreen. Why swipe back not working. I think it is defa

2条回答
  •  闹比i
    闹比i (楼主)
    2021-02-05 10:04

    Try setting the interactive pop gesture recognizer delegate to nil:

    self.navigationController.interactivePopGestureRecognizer.delegate = nil;
    

提交回复
热议问题