本文介绍了向后滑动-InteractivePopGestureRecognizer无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有类似这张照片的屏幕. HomeViewController将推送到maintabbar,而选项卡项将推送到detailScreen.为什么向后滑动不起作用.我认为这是IOS中的默认设置.请帮助我
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:如果我在cocoapods中使用SwipeBack,它会起作用.但我不想使用它
p/s: If i use SwipeBack in cocoapods, it working. But i don't want use it
推荐答案
尝试将交互式弹出手势识别器委托设置为nil:
Try setting the interactive pop gesture recognizer delegate to nil:
self.navigationController.interactivePopGestureRecognizer.delegate = nil;
这篇关于向后滑动-InteractivePopGestureRecognizer无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!