NSDictionary *attributeDict = @{NSForegroundColorAttributeName: kRGB(51, 51, 51)};
NSString *textStr = [NSString stringWithFormat:@"%@ 回复 你",model.userName];
NSMutableAttributedString *attrStr = [[NSMutableAttributedString alloc] initWithString:textStr];
NSRange range = [textStr rangeOfString:@"回复"];
[attrStr setAttributes:attributeDict range:range];
网友评论