UILable的text设置中划线(删除线)

   NSDictionary *attribtDic = @{NSStrikethroughStyleAttributeName: [NSNumber numberWithInteger:NSUnderlineStyleSingle]};
    NSMutableAttributedString *attribtStr = [[NSMutableAttributedString alloc]initWithString:@"  价格:40" attributes:attribtDic];
    label.attributedText = attribtStr;

 

posted on 2015-12-21 21:53  森code  阅读(424)  评论(0编辑  收藏  举报