As Apple answered, you can't do this.
UINavigationController with UIStatusBar and without UIStatusBar on iOS 7
-
29-06-2022 - |
質問
Is it possible programatically switch UIStatusBar background form transparent to UINavigationController's UINavigationBar tintColor and back on iOS 7?
解決 2
他のヒント
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.
所属していません StackOverflow