Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Black status bar turns white when quitting iPhone app

Tags:

iphone

I gave my iPhone app a black status bar by adding the UIStatusBarStyleOpaqueBlack / UIStatusBarStyle to the Info.plist file. It works great most of the time. The black status bar shows when the app is running and when the Default.png is being shown.

The issue is when I quit the app by pressing the home button, the status bar becomes a white block while the iPhone's standard quit animation is taking place. I haven't seen this issue with any other apps that use a black status bar.

Am I missing something?

like image 250
Brandon Walkin Avatar asked Dec 29 '22 23:12

Brandon Walkin


1 Answers

Set the background color of your window to black.

[self.view.window setBackgroundColor:[UIColor blackColor]];
like image 106
rpetrich Avatar answered Jan 11 '23 23:01

rpetrich