Preserve UINavigationBar Height with prefersStatusBarHidden

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.

+4
source share
1 answer

You can change the current window windowLevel to UIWindowLevelStatusBar when the fooobar.com/questions/608594 / ... controller appears

0
source

All Articles