设置UIAlert按钮颜色
需求:将UIAlertView的button文字改成指定颜色:

代码如下:
1 2 3 4 5 6 | |
然后要在点击按钮的时候将tintColor置空,因为默认UIView appearance的tintColor是为nil的:
1 2 3 4 5 6 | |
Learn or Death
需求:将UIAlertView的button文字改成指定颜色:

代码如下:
1 2 3 4 5 6 | |
然后要在点击按钮的时候将tintColor置空,因为默认UIView appearance的tintColor是为nil的:
1 2 3 4 5 6 | |