Doug Smith Doug Smith - 5 months ago 8
Objective-C Question

I've hidden the navigation bar and the status bar, now the screen edge pan gesture to go back won't work, is this typical?

I'm curious, if I set the navigationBar to

hidden
, and also hide the status bar, my view controller no longer responds to the screen edge gesture to pop the view controller.

Is this expected behaviour? I tried to set the
interactivePopGestureRecognizer
to enabled in
viewDidLoad
after I hide the navigation bar, but it still won't work.

Answer
[self.navigationController.navigationBar setHidden:YES];<--doesn't remove pop gesture

[self.navigationController setNavigationBarHidden:YES];<-- disables pop gesture

Simply use the first option, and in your root controller's viewDidAppear method use:

[self.navigationController.navigationBar setHidden:NO];
Comments