objective-c - 如何关闭自动滑动返回导航 Controller ? swift

标签 objective-c xcode swift swipe viewcontroller

我需要关闭自动手势滑动才能返回导航 Controller 。我使用 Swift。

我已经搜索过但没有找到适合我的解决方案。

最佳答案

您可以禁用导航 Controller 的 interactivePopGestureRecognizer:

self.navigationController?.interactivePopGestureRecognizer.enabled = false

关于objective-c - 如何关闭自动滑动返回导航 Controller ? swift ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28943151/

相关文章:

iphone - 确定 UIViewController 已加载并具有有效 View 的最佳方法?

ios - 这个效果叫什么?

ios - 我要疯了吗? UIApplicationWillEnterForegroundNotification 不适用于模拟器或设备

ios - Firebase 可扩展性 : Observer on whole data set vs multiple observers

ios - 使用 iOS11 模拟器调用两次键盘显示通知

ios - Xcode - iOS - 只需将文件上传到 FTP 服务器

iphone - 如何在 iPhone 应用程序上获得黑色状态栏?

swift - 有谁知道如何实现这个设计( swift )?

ios - UIView 的不透明度和 alpha 是否相同

swift - <未知> :0: error: type 'Key' constrained to non-protocol type 'String'