On iOS 7, if I use the prefersStatusBarHidden
method and return an instance variable that can be changed:
- (BOOL)prefersStatusBarHidden {
return self.statusBarShouldBeHidden;
}
And I change the instance variable, thus hiding the status bar, the navigation bar loses the 20pt of height that the status bar occupies. I don't want this, however. Is it possible to hide the status bar but keep the height of the navigation bar?