My application has a dark background, but in iOS 7 the status bar became transparent. So I can't see anything there, only green battery indicator in the corner. How can I change the status bar text color to Green or Orange like it is on the home screen?
I know about
Set the
UIViewControllerBasedStatusBarAppearance
toYES
in the plistIn
viewDidLoad
do a[self setNeedsStatusBarAppearanceUpdate];
Add the following method:
-(UIStatusBarStyle)preferredStatusBarStyle{ return UIStatusBarStyleLightContent; }
How can I change UIViewControllerBasedStatusBarAppearance
programmatically?
Thanks in advance...