Doug Smith Doug Smith - 1 year ago 63
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

, 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
to enabled in
after I hide the navigation bar, but it still won't work.

Answer Source
[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];
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download