Facebookのようなタグ付け機能を行っており、すでにユーザーにタグを付けることができます。このように見せることができます。それはこのコードによって行われます。
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];
}
だから、私は NSMutableAttributedString を持っています。NSMutableAttributedString から色やフォントを変更した場所を知ることはできますか? どうすればいいですか?