When using the below snippet, i get the undefined / undeclared error
on
NSForegroundColorAttributeName
my code snippet
NSMutableAttributedString * string = [[NSMutableAttributedString alloc] initWithString:self.myDisplayTxt];
[string addAttribute:NSForegroundColorAttributeName value:[UIColor redColor] range:NSMakeRange(0,5)];
Please let me know