我想在我的项目中使用NSAttributedString
,但当我试图设置 colored颜色 时,它不是来自标准集(redColor
、blackColor
、greenColor
等),UILabel
以白色显示这些字母.
[attributedString addAttribute:NSForegroundColorAttributeName
value:[UIColor colorWithRed:66
green:79
blue:91
alpha:1]
range:NSMakeRange(0, attributedString.length)];
我试着用核心图像框架中的CIColor
来制作 colored颜色 ,但结果是一样的.
谢谢你们的回答,伙计们!