UIAlertView应突出显示不同的按钮

时间:2015-09-02 15:39:02

标签: swift 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 个答案:

答案 0 :(得分:1)

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