As Apple answered, you can't do this.
UINavigationController with UIStatusBar and without UIStatusBar on iOS 7
-
29-06-2022 - |
Pregunta
Is it possible programatically switch UIStatusBar background form transparent to UINavigationController's UINavigationBar tintColor and back on iOS 7?
Solución 2
Otros consejos
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.
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow