UILabel加各种线条
来源:互联网 发布:深圳市软件企业 编辑:程序博客网 时间:2024/04/28 07:05
//显示下划线
//中划线
// NSDictionary *attribtDic = @{NSStrikethroughStyleAttributeName: [NSNumber numberWithInteger:NSUnderlineStyleSingle]};
//下划线
NSDictionary *attribtDic = @{NSUnderlineStyleAttributeName: [NSNumbernumberWithInteger:NSUnderlineStyleSingle]};
NSMutableAttributedString *attribtStr = [[NSMutableAttributedString alloc]initWithString:oldStrattributes:attribtDic];
oldPriceLabel.attributedText = attribtStr;
//显示下划线
//中划线
// NSDictionary *attribtDic =
@{NSStrikethroughStyleAttributeName: [NSNumber numberWithInteger:NSUnderlineStyleSingle]};
//下划线
NSDictionary *attribtDic =
@{NSUnderlineStyleAttributeName: [NSNumbernumberWithInteger:NSUnderlineStyleSingle]};
NSMutableAttributedString *attribtStr =
[[NSMutableAttributedString alloc]initWithString:oldStrattributes:attribtDic];
oldPriceLabel.attributedText = attribtStr;
- UILabel加各种线条
- UILabel加删除线
- UILabel加中横线
- UILabel加下划线
- UILabel各种方法解释
- UILabel的各种属性
- UILabel的各种用法
- UILabel的各种属性
- UILabel设背景颜色的时候出现一条线条
- 为UIView, UILabel加边框
- 线条
- 给UILabel 或者 UIButton标题加下划线
- 给UILabel 或者 UIButton标题加下划线
- 给UILabel 或者 UIButton标题加下划线
- 给UILabel中的文字加删除线
- 给UILabel 或者 UIButton标题加下划线
- 给UILabel 或者 UIButton标题加下划线
- 给UILabel 或者 UIButton标题加下划线
- 【一天一道LeetCode】#60. Permutation Sequence.
- swift基础笔记5-属性
- Android小记-SQLiteOpenHelper正确使用避免leak
- Java开发中的23种设计模式
- java中jdk jre jvm三者关系
- UILabel加各种线条
- 分布式服务框架
- 判断JS对象是否具有某种属性
- WEB那点事 -- (一)CGI 是什么玩意
- 凹凸文字
- PyCharm 2016.1.3激活码
- 编程语言的起源故事
- Ctrl + 鼠标左键点击的好处
- Android Native/Tombstone Crash Log 详细分析