NSMutableAttributedString
来源:互联网 发布:思创医惠 人工智能 编辑:程序博客网 时间:2024/03/29 19:29
NSMutableAttributedString *attribute = [[NSMutableAttributedStringalloc] initWithString:@"12345"attributes:@{NSFontAttributeName:[UIFontsystemFontOfSize:30]}];
[attribute appendAttributedString:[[NSAttributedStringalloc] initWithString:@"abcdefg"attributes:@{NSFontAttributeName:[UIFontsystemFontOfSize:10]}]];
UILabel *lab = [[UILabelalloc] initWithFrame:CGRectMake(50,100, 200,50)];
[self.viewaddSubview:lab];
lab.attributedText = attribute;
UILabel *lab1 = [[UILabelalloc] initWithFrame:CGRectMake(50,200, 200,50)];
[self.viewaddSubview:lab1];
NSMutableAttributedString *atttt = [[NSMutableAttributedStringalloc] initWithString:@"zzzzzzzzz"];
[atttt addAttribute:NSFontAttributeNamevalue:[UIFontsystemFontOfSize:30]range:NSMakeRange(0,5)];
lab1.attributedText = atttt;
- NSMutableAttributedString
- NSMutableAttributedString
- NSMutableAttributedString
- NSMutableAttributedString
- NSMutableAttributedString
- NSMutableAttributedString
- NSMutableAttributedString
- NSMutableAttributedString
- NSMutableAttributedString
- NSMutableAttributedString
- NSMutableAttributedString
- NSMutableAttributedString
- NSMutableAttributedString 使用
- NSMutableAttributedString使用
- NSMutableAttributedString 文字处理 。。。
- NSMutableAttributedString使用
- NSMutableAttributedString初探
- NSMutableAttributedString mode
- 泛型的简单理解
- PC端(基于Linux系统)通过串并网线口连接ARM开发板,烧写Bootloader并启用Bootp和Tftp等服务刷写Linux系统。
- PL/SQL developer链接远程数据库
- 是输入字符矩阵时
- Varnish 4 笔记
- NSMutableAttributedString
- 走格子收获
- php面向对象编程
- 第3周-项目4-百钱买百鸡
- 自己写的一个数组与list转化工具,请大神指正问题
- memset结构体初始化
- JAVA对象Bean输出(toString)
- 移动平台对 meta 标签的定义
- JVM垃圾回收器常用参数介绍