I came across the same question as BarretJ, indicating that you are using the constant kCTForegroundColorAttributeName. Here is an example:
NSMutableAttributedString* attrStr = [[NSMutableAttributedString alloc] initWithString:countStr attributes:nil]; [attrStr addAttribute:(NSString*)kCTForegroundColorAttributeName value:(id)[[UIColor greenColor] CGColor] range:range];
source share