//显示中横线和下划线
//中划线
// NSDictionary *attribtDic = @{NSStrikethroughStyleAttributeName: [NSNumber numberWithInteger:NSUnderlineStyleSingle]};
//下划线
NSDictionary*attribtDic =@{NSUnderlineStyleAttributeName: [NSNumbernumberWithInteger:NSUnderlineStyleSingle]};
NSMutableAttributedString*attribtStr = [[NSMutableAttributedStringalloc]initWithString:oldStrattributes:attribtDic];
oldPriceLabel.attributedText= attribtStr;
复制致:http://blog.csdn.net/l863784757/article/details/46709241
原著者:仰望星空HK
网友评论