Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change tint color UIAlertController iOS9

I am not sure that anyone has encountered such kind of a behavior or not but iOS9 is making my UIAlertController tint to inherit from the main window. Is there any specific way something like UIAppearance that can help and resolve the issue.

[[UICollectionViewCell appearanceWhenContainedIn:[UIAlertController class], nil] setTintColor:[UIColor colorWithRed:0 green:0 blue:0 alpha:1]];
like image 466
Akhilesh Sharma Avatar asked Oct 30 '22 18:10

Akhilesh Sharma


1 Answers

Have you set the UIWindow color in the AppDelegate like

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

At least this worked for me

enter image description here

like image 135
redead Avatar answered Nov 12 '22 10:11

redead