NSMutableAttributedString *attributedStr = [[NSMutableAttributedString alloc]initWithString:model.textMsg];
NSRange strRange = {0,[attributedStr length]};
//加颜色
[attributedStr addAttribute:NSForegroundColorAttributeName value:[UIColor blueColor] range:strRange];
//加下划线
[attributedStr addAttribute:NSUnderlineStyleAttributeName value:[NSNumber numberWithInteger:NSUnderlineStyleSingle] range:strRange];
self.contentLabel.attributedText = attributedStr;