0

这是示例代码:

NSMutableAttributedString * str=[[NSMutableAttributedString   alloc]initWithString:@"$198"];   

[str addAttribute:NSStrikethroughStyleAttributeName value:@2 range:NSMakeRange(0,[str length])];  

yourLabel.attributedText = str;
4

0 回答 0