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