Swipe back - interactivePopGestureRecognizer not working

Nguyen Hoan picture Nguyen Hoan · Jan 22, 2016 · Viewed 10.1k times · Source

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

Answer

davidethell picture davidethell · Jan 22, 2016

Try setting the interactive pop gesture recognizer delegate to nil:

self.navigationController.interactivePopGestureRecognizer.delegate = nil;