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]];
链接地址: http://www.djcxy.com/p/42676.html

上一篇: iOS Default.png状态栏未画出

下一篇: 退出iPhone应用程序时,黑色状态栏会变成白色