主要是通过富文本来进行变更
类似这样的效果
//设置价格删除线
NSAttributedString *attrStr =
[[NSAttributedString alloc]initWithString:self.price.text
attributes:
@{NSFontAttributeName:[UIFont systemFontOfSize:14.f],
NSForegroundColorAttributeName:[UIColor grayColor],
NSStrikethroughStyleAttributeName:@(NSUnderlineStyleSingle|NSUnderlinePatternSolid),
NSStrikethroughColorAttributeName:[UIColor redColor]}];
self.price.attributedText = attrStr;