我的应用具有黑色背景,但在iOS 7中,状态栏变为透明。因此,我在那里看不到任何东西,只能在角落里看到绿色电池指示器。我该如何将状态栏文本颜色更改为像主屏幕上那样的绿色或橙色?
我知道关于
我知道关于
Set the
UIViewControllerBasedStatusBarAppearance
toYES
in the plistIn
viewDidLoad
do a[self setNeedsStatusBarAppearanceUpdate];
Add the following method:
-(UIStatusBarStyle)preferredStatusBarStyle{ return UIStatusBarStyleLightContent; }