UINavigationContoller interactivePopGestureRecognizer inactive when navigation bar is hidden

后端 未结 5 673
长发绾君心
长发绾君心 2021-02-01 07:04

I have a view controller which is nested within a UINavigationController.

I have implemented the iOS 7 interactivePopGestureRecognizer to enable the user to

5条回答
  •  执笔经年
    2021-02-01 07:33

    Set your UIViewController subclass as the gestureRecognizer's delegate:

    self.navigationController.interactivePopGestureRecognizer.delegate = self;
    

    That's it!

提交回复
热议问题