gpt4 book ai didi

objective-c - 更改色调颜色 UIAlertController iOS9

转载 作者:太空狗 更新时间:2023-10-30 03:53:54 26 4
gpt4 key购买 nike

我不确定是否有人遇到过这种行为,但 iOS9 使我的 UIAlertController 色调从主窗口继承。有没有像 UIAppearance 这样的特定方法可以帮助和解决问题。

[[UICollectionViewCell appearanceWhenContainedIn:[UIAlertController class], nil] setTintColor:[UIColor colorWithRed:0 green:0 blue:0 alpha:1]];

最佳答案

你在 AppDelegate 中设置了 UIWindow 的颜色了吗

func application(application: UIApplication, didFinishLaunchingWithOptionslaunchOptions: [NSObject: AnyObject]?) -> Bool
{
window?.tintColor = .redColor()
}

至少这对我有用

enter image description here

关于objective-c - 更改色调颜色 UIAlertController iOS9,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32762317/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com