Akh*_*rma 5 tint objective-c uialertcontroller ios9
我不确定是否有人遇到过这种行为,但iOS9正在使我的UIAlertController色调从主窗口继承.是否有任何特定的方式,如UIAppearance,可以帮助和解决问题.
[[UICollectionViewCell appearanceWhenContainedIn:[UIAlertController class], nil] setTintColor:[UIColor colorWithRed:0 green:0 blue:0 alpha:1]];
Run Code Online (Sandbox Code Playgroud)
小智 2
您是否UIWindow在 AppDelegate 中设置了颜色
func application(application: UIApplication, didFinishLaunchingWithOptionslaunchOptions: [NSObject: AnyObject]?) -> Bool
{
window?.tintColor = .redColor()
}
Run Code Online (Sandbox Code Playgroud)
至少这对我有用