【UILabel 自动换行】
来源:互联网 发布:淘宝 老王代写 编辑:程序博客网 时间:2024/05/22 00:38
【UILabel 自动换行】:
UIView *footerView = [[UIView alloc] initWithFrame:CGRectMake(10, 100, 300, 180)];
UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(10, 100, 300, 150)];
label.text = @"where are you? where are you? where are you? where are you? where are you? where are you? where are you? where are you? where are you? where are you?";
//清空背景颜色
label.backgroundColor = [UIColor clearColor];
//设置字体颜色为白色
label.textColor = [UIColor whiteColor];
//文字居中显示
label.textAlignment = UITextAlignmentCenter;
//自动折行设置
label.lineBreakMode = UILineBreakModeWordWrap;
label.numberOfLines = 0;
UIView *footerView = [[UIView alloc] initWithFrame:CGRectMake(10, 100, 300, 180)];
UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(10, 100, 300, 150)];
label.text = @"where are you? where are you? where are you? where are you? where are you? where are you? where are you? where are you? where are you? where are you?";
//清空背景颜色
label.backgroundColor = [UIColor clearColor];
//设置字体颜色为白色
label.textColor = [UIColor whiteColor];
//文字居中显示
label.textAlignment = UITextAlignmentCenter;
//自动折行设置
label.lineBreakMode = UILineBreakModeWordWrap;
label.numberOfLines = 0;
0 0
- UILabel自动换行
- UILabel自动换行
- UILabel自动换行
- UILabel自动换行
- UILabel自动换行
- UILabel 自动换行--
- UILabel自动换行
- UILabel自动换行
- UILabel 自动换行
- UILabel 自动换行
- UILabel 自动换行
- 【UILabel 自动换行】
- UILabel 自动换行
- UILabel自动换行
- uilabel实现自动换行
- iOS-UILabel 自动换行
- UILabel自动换行
- UILabel自动换行
- Window下安装Libnet环境时候遇到的问题:找不到'Pcap.h'和'未定义ip-nh'
- Intent学习笔记整理
- spring+hibernate整合web.xml、applicationContext.xml配置
- C语言宏定义技巧
- ,避免造成混乱。 设想1:拿ListView为例,如果ListView的ItemView复用机制,所有的ItemView复用同一个,如果在多线程下载图片的情况下,可能最终只有最后一个View显示图片
- 【UILabel 自动换行】
- Nginx - access log
- 使用javac和java命令编译和执行程序,学习隐藏在IDE背后的知识
- Android httpClient
- Box2d
- ,避免造成混乱。 设想1:拿ListView为例,如果ListView的ItemView复用机制,所有的ItemVie,避免造成混乱。 设想1:拿ListView为例,如果ListView的Ite
- memset sprintf
- 对文件的操作
- spring整合myBatis