标签:ios中划线
NSString *marketPriceStr = @"Market price: 1234";
NSRange range = [marketPriceStr rangeOfString: @"1234"];
NSMutableAttributedString *attrStr = [[NSMutableAttributedString alloc]initWithString:marketPriceStr];
[attrStr addAttribute:NSStrikethroughStyleAttributeName value:[NSNumber numberWithInteger:NSUnderlinePatternSolid |NSUnderlineStyleSingle] range:range];
_marketPriceLabel.attributedText = attrStr;
标签:ios中划线
原文地址:http://blog.csdn.net/u011404663/article/details/46549895