在UIAlertView中更改按钮标题颜色 [英] Change button title color in UIAlertView

查看:115
本文介绍了在UIAlertView中更改按钮标题颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何更改 UIAlertView 按钮标题的颜色。

How can I change the color of the UIAlertView button title.

我想要标题确定红色。

推荐答案

实际上,您可以在iOS8中更改UIAlertController视图的色调颜色。

Actually, you can change the tint color of the view of the UIAlertController in iOS8.

UIAlertController *alertController = ....
[alertController.view setTintColor:[UIColor greenColor]];

这篇关于在UIAlertView中更改按钮标题颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆