Status Bar blinks when awake from background state

724 Views Asked by At

In some of app's view controllers status bar is hidden. But when user opens the app from a background, status bar becomes visible for a second, and then hides. I tried:

  1. to put [[UIApplication sharedApplication] setStatusBarHidden:YES] into applicationWillEnterForeground: method. However, status bar becomes visible before this method is called.
  2. check status bar's visibility when applicationWillResignActive: self.isStatusBarHidden = [UIApplication sharedApplication].statusBarHidden ? YES : NO;, but it returns <nil>. (Then I wanted to hide status bar and show it when applicationWillEnterForeground - this leads to a completely opposite situation)

How to solve this problem?

P.S. View controller-based status bar appearance in my .plist file is equal to NO and Status bar is initially hidden is equal to NO too.

1

There are 1 best solutions below

6
On

Are you keeping your settings like this?enter image description here

You need to check status bar style Hide during application launch.