简体   繁体   中英

Black status bar turns white when quitting iPhone app

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?

将窗口的背景颜色设置为黑色。

[self.view.window setBackgroundColor:[UIColor blackColor]];

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM