NSString *contentStr = [NSString stringWithFormat:@"我的客服:%@",model.HANDLEREPLY];
NSMutableAttributedString *str = [[NSMutableAttributedString alloc]initWithString:contentStr];
//设置:在0-5个单位长度内的内容显示成红色
[str addAttribute:NSForegroundColorAttributeName value:[UIColor redColor] range:NSMakeRange(0, 5)];
self.replyStringLabel.attributedText = str;
网友评论