如何关闭自动滑动以返回导航控制器?迅速 [英] How to turn off the automatic swipe to go back in navigation controller? Swift
本文介绍了如何关闭自动滑动以返回导航控制器?迅速的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要关闭自动手势滑动才能返回导航控制器.我使用 Swift.
I need to turn off the automatic gesture swiping to go back in navigation controller. I using Swift.
我已经搜索过,但没有找到适合我的解决方案.
I have already searched but didn't found a solution for me.
推荐答案
您可以禁用导航控制器的 interactivePopGestureRecognizer
:
You can disable the interactivePopGestureRecognizer
of your navigationController:
self.navigationController?.interactivePopGestureRecognizer.enabled = false
这篇关于如何关闭自动滑动以返回导航控制器?迅速的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文