label 划线问题
来源:互联网 发布:大数据 veracity 编辑:程序博客网 时间:2024/09/21 09:08
//中划线
NSDictionary *attribtDic = @{NSStrikethroughStyleAttributeName: [NSNumber numberWithInteger:NSUnderlineStyleSingle]};
//下划线
NSDictionary *attribtDic = @{NSUnderlineStyleAttributeName: [NSNumbernumberWithInteger:NSUnderlineStyleSingle]};
NSMutableAttributedString *attribtStr = [[NSMutableAttributedString alloc]initWithString:oldStrattributes:attribtDic];
[attribtStr addAttribute:NSStrikethroughColorAttributeName value:[UIColor redColor] range:NSMakeRange(0, oldStr.length)];//删除线红色
oldPriceLabel.attributedText = attribtStr;
0 0
- label 划线问题
- Label下划线 中划线
- 给label加中划线
- iOS_带下划线的Label
- label上添加中划线
- IOS Label下划线 中划线
- IOS 设置label中划线、下划线
- label上的文字加上划线
- iOS Label加中划线、下划线
- 鼠标的划线问题
- RTLabel 可以让label显示某段文字带下划线
- 按钮下自带划线 && 计算Label.text长度
- iOS 给label加下划线或者中划线
- label控件--关于价格显示中划线和下划线
- iOS 为label添加中划线 下划线(商品打折)
- iOS开发 给Label加下划线、中划线
- iOS开发 给Label加下划线、中划线
- iOS label文字添加中划线和下划线
- 双目测距(二)--双目标定与矫正
- Java去除字符串中的空格、回车、换行符、制表符 及 常用正则表达式
- emmc/sd驱动代码预览
- Spring 匹配注入规则
- 真正的SEO优化不单靠排名,还有4个优化点
- label 划线问题
- Unity_游戏源码
- Java第一天
- Java构造函数的继承问题
- [HDU2460] Network [2008 Asia Hefei Regional Contest Online E]
- INFORMIX数据导入导出
- 安卓RadioButtom设置图片与文字之间的距离
- <c:forEach varStatus="status">中 varStatus的属性简介
- SpringMVC