我不确定是否有人遇到过这样的行为,但iOS9将我的UIAlertController设置为从主窗口继承。有没有像UIAppearance这样的具体方法可以帮助和解决这个问题。
[[UICollectionViewCell appearanceWhenContainedIn:[UIAlertController class], nil] setTintColor:[UIColor colorWithRed:0 green:0 blue:0 alpha:1]];发布于 2015-11-26 19:47:56
您是否在AppDelegate中设置了如下UIWindow颜色
func application(application: UIApplication, didFinishLaunchingWithOptionslaunchOptions: [NSObject: AnyObject]?) -> Bool
{
window?.tintColor = .redColor()
}至少这对我是有效的

发布于 2016-06-10 15:20:20
由于iOS 9 (https://openradar.appspot.com/22209332)中引入的已知错误,该tintColor会被应用程序窗口的tintColor覆盖。
在这里查看我的完整答案:
https://stackoverflow.com/questions/32762317
复制相似问题