【发布时间】:2015-09-17 22:32:50
【问题描述】:
在 iOS8 中,我想将状态栏文本(运营商、时间、电池)的颜色设置为自定义颜色。
我已将 View controller-based status bar appearance 设置为 NO 并在单个视图控制器和应用程序委托中尝试了此代码:
[[UINavigationBar appearance] setTintColor:color_font];
和
[self.navigationController.navigationBar setBarTintColor:[UIColor greenColor]];
【问题讨论】:
-
您是否将这些指令放在您的 AppDelegate 文件中?
-
在视图控制器中
-
将它们添加到您的 AppDelegate 文件中
标签: ios