标签: ios interactivepopgesture
我想禁用整个应用程序的向左滑动选项,在这里我需要禁用向左滑动
self.navigationController?.interactivePopGestureRecognizer?.isEnabled = false
我在viewDidLoad()类之一的viewController中添加了以上行,但这将适用于特定的viewController,但适用于我们要添加子视图的整个应用程序。
viewDidLoad()
viewController
我需要一种解决方案,其中我必须执行适用于整个应用程序的逻辑'