I am doing tagging feature like facebook and I can tag user already. I can show like this. It is done by this code.
NSMutableAttributedString * string = [[NSMutableAttributedString alloc]initWithString:self.textView.text];
for (NSString *word in self.tagNameCollection) {
[string addColor:[UIColor redColor] substring:word];
[string addBackgroundColor:[Helpers getFromRGB:135 green:206 blue:250] substring:word];
}
So, I have NSMutableAttributedString. Can I know where I have changed colour, font from my NSMutableAttributedString? May I know how to do?