为什么80%的码农都做不了架构师?>>>
NSString *strStr = @"20.0元";
NSInteger lens =strStr.length;
//富文本
NSMutableAttributedString *str = [[NSMutableAttributedString alloc]initWithString:strStr attributes:@{NSFontAttributeName:[UIFont systemFontOfSize:36*REDIO],NSForegroundColorAttributeName:[UIColor blackColor]}];
[str addAttributes:@{NSFontAttributeName:[UIFont systemFontOfSize:12*REDIO],NSForegroundColorAttributeName:[UIColor blackColor]} range:NSMakeRange(lens - 1, 1)];//NSUnderlineStyleAttributeName:[NSNumber
UILabel *moneylab = [[UILabel alloc] init];
moneylab.attributedText = str;
[self.contentView addSubview:moneylab];
[moneylab mas_makeConstraints:^(MASConstraintMaker *make) {
make.right.equalTo(self.contentView.mas_right).offset(-30);
make.top.equalTo(lineView1.mas_bottom).offset(5);
}];