//添加删除线
NSMutableAttributedString *attribtStr = [[NSMutableAttributedString alloc]initWithString:[NSString stringWithFormat:@"¥%@",self.data[indexPath.row][@"packTargetPrice"] ]attributes:@{NSStrikethroughStyleAttributeName:[NSNumber numberWithInteger:NSUnderlineStyleSingle] }];
cell.targetPriceLabel.attributedText = attribtStr;
//加载HTML字符串:
NSAttributedString * attrStr = [[NSAttributedString alloc] initWithData:[self.data[indexPath.row][@"packDesc"] dataUsingEncoding:NSUnicodeStringEncoding] options:@{ NSDocumentTypeDocumentAttribute: NSHTMLTextDocumentType } documentAttributes:nil error:nil];
cell.midDetailLabel.attributedText=attrStr;
网友评论