价格中划线

//显示下划线
//中划线
// NSDictionary *attribtDic = @{NSStrikethroughStyleAttributeName: [NSNumber numberWithInteger:NSUnderlineStyleSingle]};
//下划线
NSDictionary *attribtDic = @{NSUnderlineStyleAttributeName: [NSNumbernumberWithInteger:NSUnderlineStyleSingle]};
NSMutableAttributedString *attribtStr = [[NSMutableAttributedString alloc]initWithString:oldStrattributes:attribtDic];
oldPriceLabel.attributedText = attribtStr;

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • 与NSString类似,在iOS中AttributedString也分为NSAttributedString和 N...
    钱十六阅读 904评论 0 0
  • 字体属性设置示例:if(color ==nil) {color = [NSColor redColor];}NSF...
    袏扌戒指阅读 8,498评论 0 2
  • 转载:http://blog.csdn.net/u010330109/article/details/518821...
    F麦子阅读 4,317评论 0 3
  • 【日更067】在“简书”写文章已经有三个多月了,有时候会把某几篇同步更新到“新浪微博”的“头条文章”里,以前都是手...
    唐斩2086阅读 352评论 0 2
  • 因为工作需要需要制作deb安装包。在老大的帮助下,终于搞成功了。下面来看一下制作方法。我们以制作Nginx的deb...
    4ffde5305e8f阅读 4,783评论 0 2

友情链接更多精彩内容