UILabel 自动换行
来源:互联网 发布:诺基亚e5 00软件下载 编辑:程序博客网 时间:2024/05/17 22:20
UILabel *label = [[UILabelalloc] 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 = [UIColorclearColor];
//设置字体颜色为白色
label.textColor = [UIColorwhiteColor];
//文字居中显示
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自动换行
- 《计算机程序设计艺术》系列书
- IBM Rational Software Architect Evaluation(RSA)安装过程(图)
- Memcached深度分析
- commons io上传文件
- poj 1236 强连通分量 缩点
- UILabel 自动换行
- 单链表
- MyEclipse_Warning_serialVersionUID
- HDU 4280 Island Transport 最大流SAP
- Spring中bean的生命周期和Bean的装配
- php 从数据库读取数据并生成树型可折叠菜单
- C++中const、volatile、mutable的用法
- 超简单易用的 “在 pcduino 开发板上写 Linux 驱动控制板载 LED 的闪烁”
- 程序员的幽默