【发布时间】:2014-11-19 10:10:13
【问题描述】:
将开发版 iPhone 5 升级到 iOS 8.1 后,UINavigationBars 和 UIAlertViews 上的所有按钮和默认标签开始以白色文本出现在屏幕上。
我尝试通过以下方式解决问题:
// UIView tints
[[UIView appearance] setTintColor:[UIColor blackColor]];
[[UIAlertView appearance] setTintColor:[UIColor blackColor]];
[[UINavigationBar appearance] setBarTintColor:[UIColor blackColor]];
[[UIBarButtonItem appearance] setTintColor:[UIColor whiteColor]];
这在大多数情况下以某种方式解决了白色按钮,但不是全部。我在收到应用内通知后出现的警报视图仍然存在问题,带有导航栏按钮和标签。
有人遇到过这个问题吗?如果可能的话有解决办法吗?
【问题讨论】:
-
默认为蓝色 尝试评论 [[UIBarButtonItem appearance] setTintColor:[UIColor whiteColor]];
-
您可以尝试全局更改它们 [self.window setTintColor:[UIColor blackColor]];将代码放入Application delegate
-
Radu,评论说不会改变结果。 bplat,已经尝试过了,但没有成功。
标签: ios objective-c