UILabel *coutentLabel = [[UILabel alloc] initWithFrame:CGRectMake(view.frame.size.width / 2, 0, view.frame.size.width / 2 - 10, view.frame.size.height)];
coutentLabel.font = [UIFont systemFontOfSize:18];
coutentLabel.text = str;
coutentLabel.textAlignment = 2;
NSMutableAttributedString *strs = [[NSMutableAttributedString alloc]initWithString:str];
//设置:在0-3个单位长度内的内容显示成红色
[strs addAttribute:NSForegroundColorAttributeName value:CloudFitGreen range:colorRange];
coutentLabel.attributedText = strs;