Is it possible programatically switch UIStatusBar background form transparent to UINavigationController's UINavigationBar tintColor and back on iOS 7?
Asked
Active
Viewed 191 times
2
-
Changing the background color from transparent to the bar color will do nothing, as the status bar sits above the nav bar already. Or are you asking if its possible to change the status bar style (i.e. the foreground colors)? – Tyson Oct 22 '13 at 09:22
2 Answers
0
I have demonstrated how this new method, preferredStatusBarStyle, can be overridden to adjust the color of the content in the status bar iOS7.
- (UIStatusBarStyle)preferredStatusBarStyle
{
return UIStatusBarStyleLightContent;
}
Returning UIStatusBarStyleLightContent changes the color of the content in the status bar to white; alternately, UIStatusBarStyleDefault sets the color of the status bar content to black . Black and white are currently the only available status bar content colors.

Vizllx
- 9,135
- 1
- 41
- 79