Change hue color of UIAlertController iOS9

I'm not sure if anyone has encountered this behavior or not, but iOS9 makes my UIAlertController shade inherit from the main window. Is there any specific way similar to UIAppearance that can help and solve the problem.

[[UICollectionViewCell appearanceWhenContainedIn:[UIAlertController class], nil] setTintColor:[UIColor colorWithRed:0 green:0 blue:0 alpha:1]]; 
+5
source share
2 answers

Have you set the color of the UIWindow to AppDelegate, e.g.

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

At least it worked for me

enter image description here

+2
source

Due to a known bug introduced in iOS 9 ( https://openradar.appspot.com/22209332 ), tintColor is overridden by the tintColor application window.

See my full answer here:

fooobar.com/questions/496916 / ...

0
source

Source: https://habr.com/ru/post/1232190/


All Articles