At a certain time in my application, I hide UIStatusBaron iOS 7.
-(UIStatusBarAnimation)preferredStatusBarUpdateAnimation {
return UIStatusBarAnimationFade;
}
-(BOOL)prefersStatusBarHidden {
if (self.state == StateModal) {
return YES;
}
return NO;
}
However, this is the y-start of the view controller UINavigationBar. It moves upward as it is not displayed UIStatusBar, but I would like to keep the height of the status bar, but it makes its contents invisible.
Is it possible? I don't have to consider iOS 6, just iOS 7.
source
share