NSDictionary *attribtDic = @{NSStrikethroughStyleAttributeName: [NSNumber numberWithInteger:NSUnderlineStyleSingle]}; NSMutableAttributedString *attribtStr = [[NSMutableAttributedString alloc]initWithString:@" 价格:40" attributes:attribtDic]; label.attributedText = attribtStr;
时间: 2024-12-12 03:30:59