小编bik*_*ota的帖子

使用preferredStyle:.ActionSheet更改UIAlertController中取消按钮的颜色

是否可以将取消按钮的颜色更改为红色,我知道我们可以使用破坏性样式

  let cancelActionButton: UIAlertAction = UIAlertAction(title: "Cancel", style: .Destructive) { action -> Void in
            print("Cancel")
        }
Run Code Online (Sandbox Code Playgroud)

但我想分开取消按钮,就像这样 在此输入图像描述

uiactionsheet swift uialertcontroller

13
推荐指数
4
解决办法
6836
查看次数

标签 统计

swift ×1

uiactionsheet ×1

uialertcontroller ×1