How to change UIAlertController button text colour in iOS9?

后端 未结 14 1392
隐瞒了意图╮
隐瞒了意图╮ 2020-12-15 16:16

The question is similar to iOS 8 UIActivityViewController and UIAlertController button text color uses window's tintColor but in iOS 9.

I have a UIAlertControlle

14条回答
  •  孤街浪徒
    2020-12-15 16:59

    I wanted to make the delete button to appear red, so I used .destructive style:

     alert.addAction(UIAlertAction(title: "Delete", style: .destructive, handler:{(UIAlertAction) in
    

提交回复
热议问题