NSString *oldPrice = self.oldMoney.text;
NSUInteger length = [oldPrice length];
NSMutableAttributedString *attritu = [[NSMutableAttributedString alloc]initWithString:self.oldMoney.text];
[attritu addAttributes:@{
NSStrikethroughStyleAttributeName:@(NSUnderlineStyleThick),
NSForegroundColorAttributeName:
[UIColor lightGrayColor],
NSBaselineOffsetAttributeName:
@(0),
NSFontAttributeName: [UIFont systemFontOfSize:14]
} range:NSMakeRange(0, length)];
[self.oldMoney setAttributedText:attritu];
网友评论