如何对我的整个应用程序禁用InteractivePopGestureRecognizer

时间:2018-06-23 09:14:35

标签: ios interactivepopgesture

我想禁用整个应用程序的向左滑动选项,在这里我需要禁用向左滑动

self.navigationController?.interactivePopGestureRecognizer?.isEnabled = false

我在viewDidLoad()类之一的viewController中添加了以上行,但这将适用于特定的viewController,但适用于我们要添加子视图的整个应用程序。

我需要一种解决方案,其中我必须执行适用于整个应用程序的逻辑'

0 个答案:

没有答案