我想NSAttributedString在我的项目中使用,但是当我尝试设置颜色时,不是来自标准集(redColor,blackColor等greenColor)UILabel的颜色以白色显示这些字母。这是我的代码行。
[attributedString addAttribute:NSForegroundColorAttributeName
value:[UIColor colorWithRed:66
green:79
blue:91
alpha:1]
range:NSMakeRange(0, attributedString.length)];
我尝试使用CIColorCore Image 框架制作颜色,但它显示了相同的结果。我应该在我的代码中进行哪些更改才能以正确的方式执行它?
Thx 的答案,伙计们!