I want to use NSAttributedString
in my project, but when I'm trying to set color, which isn't from the standard set (redColor
, blackColor
, greenColor
etc.) UILabel
displays these letters in white color.
Here is my line of this code.
[attributedString addAttribute:NSForegroundColorAttributeName
value:[UIColor colorWithRed:66
green:79
blue:91
alpha:1]
range:NSMakeRange(0, attributedString.length)];
I tried to make color with CIColor
from Core Image framework, but it showed the same results.
What should I change in my code to perform it in right way?
Thx for answers, guys!