Doug Smith Doug Smith - 3 months ago 6x
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.

[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];