iOS UILabel高度自适应
2016-07-15 11:59
393 查看
UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(60, 100, 200, 0)];
//设置label的富文本 //label.attributedText = attrStr;
//自动换行 label.numberOfLines = 0;
//label高度自适应 [label sizeToFit];
[self.view addSubview:label];
相关文章推荐
- Android view中的requestLayout和invalidate方法
- 【Debug】The value of ESP was not properly saved across a function call.
- KVO (key-value observing)的使用
- Android Studio 出现call requires api level 11 (current min is 2)解决方法
- 7.You have issued a SHUTDOWN ABORT command to bring down your database instance. Considerthe steps t
- idea自动生成serialVersionUID
- HashMap如何根据Value排序?
- 乱码电路(Garbled circuits)
- iOS开发:UITableview的多选功能实现
- RequireJS基础(三)
- UE4帧动画Matineed
- UE4帧动画Matineed
- iOS UITableView长按cell复制内容
- ORA-0131:debugging requires the debug connect session system privilege
- ServletContextListener与ServeltRequestListener
- RequireJS基础(二)
- requestWindowFeature(Window.FEATURE_NO_TITLE)无效解决方法
- 【leetcode】62. Unique Paths
- RequireJS 基础(一)
- error: Malformed value for push.default: 无