【问题标题】:UIAlertView should highlight different buttonUIAlertView 应该突出显示不同的按钮
【发布时间】:2015-09-02 15:39:01
【问题描述】:

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

这就是我初始化警报的方式:

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

这就是它的外观: 感谢您的帮助。

【问题讨论】:

    标签: swift uialertview


    【解决方案1】:

    看起来您不能简单地更改 UIAlertView 的样式。我认为您需要从外部访问要修改的按钮。因此请参阅以下link

    【讨论】:

      猜你喜欢
      • 2013-10-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-09-27
      • 2019-04-27
      相关资源
      最近更新 更多