您的位置:首页 > 其它

label上的文字加上划线

2016-06-24 14:22 399 查看
Label添加上划线

Label.attributedText = [[NSAttributedString alloc]initWithString:[NSString stringWithFormat:@"¥%@",entity.shop_price]

                                                                              attributes:

                                                @{NSFontAttributeName:[UIFont systemFontOfSize:12.f],

                                                  NSForegroundColorAttributeName:[UIColor blackColor],

                                                  NSStrikethroughStyleAttributeName:@(NSUnderlineStyleSingle|NSUnderlinePatternSolid),

                                                  NSStrikethroughColorAttributeName:[UIColor blackColor]}];
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  label 划线