1

I have a UIAlertController with the tintColor orange but everytime I click on the Button it changes its color to blue (I guess the native color). How do i solve it?

let orange: UIColor = UIColor(red: 232.0/255, green: 121.0/255, blue: 23.0/255, alpha: 1.0)

let alert = UIAlertController(title: "Welcome!", message: "", preferredStyle: UIAlertControllerStyle.Alert)
        alert.view.tintColor = orange
        alert.addAction(UIAlertAction(title: "Done", style: UIAlertActionStyle.Default, handler: nil))
        self.presentViewController(alert, animated: true, completion: nil)
Anbu.Karthik
  • 82,064
  • 23
  • 174
  • 143
Megaetron
  • 1,154
  • 2
  • 15
  • 29

1 Answers1

1

this is the Bug in iOS 9.0, see apple Community bug reports, may be it fixed on iOS 9.1

for additional reference see this link

Community
  • 1
  • 1
Anbu.Karthik
  • 82,064
  • 23
  • 174
  • 143