我有一个带有tintColor
橙色的UIAlertController,但每次点击按钮时它都会将颜色变为蓝色(我猜是原生颜色)。我该如何解决?
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)