How to hide the navigation bar without hiding the status bar in my application? When I try [self.navigationController.navigationBar setHidden:YES]; , it also hides the status bar. I need to show the status bar as follows:

I need to hide the visible navigation bar first, make the status bar still visible, and I also have a view that I need to move below the status bar, but the view is positioned like the navigation bar still exists when I set the frame position to 0,0 .
I set my status bar as:
[[UIApplication sharedApplication] setStatusBarHidden:NO]; [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];
ios xcode uinavigationcontroller
Little Tiny Dev
source share