UINavigationContoller interactivePopGestureRecognizer inactive when navigation bar is hidden

后端 未结 5 674
长发绾君心
长发绾君心 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:25

    Simple solution

    Just set the hidden property of the navigation bar not through navigation controller

    Just use these two lines

    self.navigationController.navigationBarHidden = NO;
    self.navigationController.navigationBar.hidden = YES;
    

提交回复
热议问题