标签: ios objective-c ios10.3
这是示例代码:
NSMutableAttributedString * str=[[NSMutableAttributedString alloc]initWithString:@"$198"]; [str addAttribute:NSStrikethroughStyleAttributeName value:@2 range:NSMakeRange(0,[str length])]; yourLabel.attributedText = str;