//设置 指定内容显示成红色
NSString *title2=@"阅读并接受 《风险披露》 声明";
NSMutableAttributedString *att = [[NSMutableAttributedString alloc]initWithString:title2];
[att addAttribute:NSForegroundColorAttributeName value:[UIColor blueColor] range:NSMakeRange(5, 6)];
UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(55, 202, 250, 30)];
label.font = [UIFont systemFontOfSize:15];
label.text = title2;
label.textColor = [UIColor lightGrayColor];
label.attributedText = att;
NSString *title2=@"阅读并接受 《风险披露》 声明";
NSMutableAttributedString *att = [[NSMutableAttributedString alloc]initWithString:title2];
[att addAttribute:NSForegroundColorAttributeName value:[UIColor blueColor] range:NSMakeRange(5, 6)];
UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(55, 202, 250, 30)];
label.font = [UIFont systemFontOfSize:15];
label.text = title2;
label.textColor = [UIColor lightGrayColor];
label.attributedText = att;