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.attributedText = [[NSAttributedString alloc]initWithString:[NSString stringWithFormat:@"¥%@",entity.shop_price]
attributes:
@{NSFontAttributeName:[UIFont systemFontOfSize:12.f],
NSForegroundColorAttributeName:[UIColor blackColor],
NSStrikethroughStyleAttributeName:@(NSUnderlineStyleSingle|NSUnderlinePatternSolid),
NSStrikethroughColorAttributeName:[UIColor blackColor]}];
相关文章推荐
- ASP.NET中Label控件用法详解
- javascript实现label标签跳出循环操作
- 浅谈jquery点击label触发2次的问题
- Jquery跨域获得Json时invalid label错误的解决办法
- js 为label标签和div标签赋值的方法
- ASP.NET中Literal与Label控件的区别
- jquery实现点击label的同时触发文本框点击事件的方法
- html label标签的使用教程
- Libgdx学习笔记:可垂直滚动的文本组件CHScrollLabel
- ASP.NET中Literal与Label控件的区别
- ASP.NET中Label控件用法详解
- iOS控件--UILabel
- Day-15 HTML label标签
- GUI 图形化用户界面 监听机制
- Javascript 中变更Html标签label的文本
- android 控件-TextView用法整理
- Cocos2dx lua Label的换行
- IOS Label 同步 UITextfield 显示输入内容(删除)
- Android NDK Cocos2dx 3.4 Label中文显示
- Label适应内容,改变高度