As Apple answered, you can't do this.
UINavigationController with UIStatusBar and without UIStatusBar on iOS 7
-
29-06-2022 - |
Domanda
Is it possible programatically switch UIStatusBar background form transparent to UINavigationController's UINavigationBar tintColor and back on iOS 7?
Soluzione 2
Altri suggerimenti
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.
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow