UINavigationController Interactive Pop Gesture Not Working?

前端 未结 10 1439
你的背包
你的背包 2020-12-13 10:02

So I have a navigation controller in my built for iOS 7 app. The titleView is visible, as well as the back button and navigation bar its self. For some reason, the interac

10条回答
  •  失恋的感觉
    2020-12-13 10:24

    Look at this response and comments. All you have to do is set your navigation controller's interactive pop gesture recognizer's delegate to nil:

    self.navigationController.interactivePopGestureRecognizer.delegate = nil;
    

    Setting it to a casted self to id also works because all methods in the protocol are optional, but I think setting the delegate to nil is more appropriate in this case.

提交回复
热议问题