NSString *originalCost = [NSString stringWithFormat:@"%.0f元",[mode.originalCost floatValue]];
NSDictionary*attribtDic =@{NSStrikethroughStyleAttributeName: @(1),NSBaselineOffsetAttributeName : @(NSUnderlineStyleSingle)};
NSMutableAttributedString*attribtStr = [[NSMutableAttributedString alloc] initWithString:originalCost attributes:attribtDic];
self.label.attributedText= attribtStr;
网友评论