【发布时间】:2014-12-23 17:06:21
【问题描述】:
我可以为UIControlState 设置attributedTitle,但是如何为UIControlState 设置属性标题的颜色?
【问题讨论】:
-
在您的标题属性字典中:
NSForegroundColorAttributeName: someColor -
对,工作正常,但这不允许我根据 .Selected 控件状态设置颜色
-
使用 setAttributedText 控制状态 .... 这应该可以...