UILabel,文字添加下划线,中划线
2024-08-27 21:21:56
//显示下划线
//中划线
// NSDictionary *attribtDic = @{NSStrikethroughStyleAttributeName: [NSNumber numberWithInteger:NSUnderlineStyleSingle]};
//下划线
NSDictionary *attribtDic = @{NSUnderlineStyleAttributeName: [NSNumbernumberWithInteger:NSUnderlineStyleSingle]};
NSMutableAttributedString *attribtStr = [[NSMutableAttributedString alloc]initWithString:oldStrattributes:attribtDic];
oldPriceLabel.attributedText = attribtStr;
最新文章
- android 异步加载框架 原理完全解析
- C#学习笔记 -- Attribute
- 【转】OpenStack和Docker、ServerLess能不能决定云计算胜负吗?
- Git平台使用时的配置分析
- django - transaction
- liger 的 ligerDialog 的使用。
- (转)linux 技巧:使用 screen 管理你的远程会话
- inux 安装中文支持包及中文字符集配置 +i18n
- VS2010断点无效
- BZOJ 1010: [HNOI2008]玩具包装toy
- js、jquery的入口函数及其执行与图片加载的先后顺序
- Commons Codec基本使用(转载)
- async await Task
- GNU C 扩展之__attribute__ 机制简介
- 使用jitpack来获取github上的开源项目
- Google Guava的5个鲜为人知的特性
- SQL Server 更新统计信息出现严重错误,应放弃任何可能产生的结果
- LIS的O(nlogn)算法
- C#中 Reference Equals, == , Equals的区别
- redis 版的 hello world
热门文章
- 集成支付宝报一堆warning: (arm64) /Users/scmbuild/workspace/standard-pay/.....警告问题解决办法亲测可行!
- javascript之事件详解2
- python中的“引用”和C++的引用
- VMware虚拟机中如何安装VMWare-Tools详解
- [Lua]基于cc.load('mvc') .ViewBase索引资源方案
- CSS3—CSS3和现代Web设计
- line-height行高使用技巧
- 利用XPath解析带有xmlns的XML文件
- myeclipse 项目运行时报错:运行项目时报错:Could not publish server configuration for Tomcat v6.0 Server at localhost. Multiple Contexts have a";/";
- 2016022608 - redis字符串命令集合