NSMutableAttributedString设置内容的属性
来源:互联网 发布:js数组中移除元素 编辑:程序博客网 时间:2024/05/16 04:24
//开始编辑
[attrStr beginEditing];
//设置文字颜色
[attrStraddAttribute:NSForegroundColorAttributeNamevalue:[UIColorblueColor] range:range];
//设置文字大小
[attrStr addAttribute:NSFontAttributeNamevalue:[UIFontsystemFontOfSize:17]range:range];
//结束编辑
[attrStrendEditing];
参数1:设置的内容,有好多在头文件里面.
参数2:设置值
参数3:编辑的范围
0 0
- NSMutableAttributedString设置内容的属性
- NSMutableAttributedString属性设置
- NSMutableAttributedString控制字符串的属性
- NSMutableAttributedString 属性字符串的使用
- NSMutableAttributedString 的使用方法,设置格式
- NSMutableAttributedString 的使用方法,设置格式
- NSMutableAttributedString 的使用方法,设置格式
- 带属性的字符串(NSMutableAttributedString)的使用
- 带属性的字符串(NSMutableAttributedString)的使用
- 带属性的字符串 NSMutableAttributedString/NSAttributedString
- 带属性的字符串 NSMutableAttributedString/NSAttributedString
- NSMutableAttributedString(带属性的string)
- 关于NSMutableAttributedString属性字符串的用法
- 富文本带属性的字符串NSMutableAttributedString
- 关于NSMutableAttributedString属性字符串的用法
- IOS NSMutableAttributedString 富文本的设置
- NSMutableAttributedString计算内容长度
- iOS属性字符串NSMutableAttributedString
- MFC中的句柄
- ReLu(Rectified Linear Units)激活函数
- 21个webApp前端开发问题
- MathType破解版式保存后字体变化怎么解决?
- java 接口及抽象类
- NSMutableAttributedString设置内容的属性
- Java基本数据类型总结
- android实现背景平铺的三种方法
- HttpServletRequest.getRemoteAddr()之代理提交
- 武汉龙星计划之论文选题篇
- 使用集合LinkedList模拟堆栈方法
- word格式转换成pdf格式转换器
- Python之数据类型 二
- 查看局域网内在线ip