iosobjective-cswiftswipe-gesture

Swipe back - interactivePopGestureRecognizer not working


enter image description here

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 default in IOS. Please help me

p/s: If i use SwipeBack in cocoapods, it working. But i don't want use it


Solution

  • Try setting the interactive pop gesture recognizer delegate to nil:

    self.navigationController.interactivePopGestureRecognizer.delegate = nil;