2015-09-02 81 views
0

我有一个UIAlertView它突出显示取消按钮,但它应该突出显示另一个。切换按钮不是一个选项。UIAlertView应突出显示不同的按钮

这是我如何初始化警报:

let downloadAlert = UIAlertView(title: NSLocalizedString("Title", comment: ""), 
       message: NSLocalizedString("Message", comment: ""), 
       delegate: self, 
       cancelButtonTitle: NSLocalizedString("Cancel", comment: ""), 
       otherButtonTitles: NSLocalizedString("Okay", comment: "")) 

,这是它的外观: enter image description here 感谢您的帮助。

回答

1

看起来你不能简单地改变UIAlertView的风格。我认为你需要访问你想要修改的按钮。因此请参阅以下link