UILabel自适应高度
来源:互联网 发布:万人老虎机系统源码 编辑:程序博客网 时间:2024/06/16 12:39
- (void)labelHeight:(UILabel *)label;
{
CGRect txtFrame = label.frame;
txtFrame.size.height =[label.text boundingRectWithSize:CGSizeMake(txtFrame.size.width, CGFLOAT_MAX)
options:NSStringDrawingUsesLineFragmentOrigin | NSStringDrawingUsesFontLeading
attributes:[NSDictionarydictionaryWithObjectsAndKeys:label.font,NSFontAttributeName, nil] context:nil].size.height;
label.frame = txtFrame;
}
0 0
- UILabel, UITextView 高度自适应
- UILabel 自适应高度
- UILabel高度自适应
- UILabel自适应高度
- 关于UILabel高度自适应
- UILabel的自适应 高度
- UILabel, UITextView 高度自适应
- UILabel自适应高度
- UILabel的高度自适应
- UILabel自适应高度
- UILabel自适应高度
- UILabel高度自适应
- UILabel高度自适应
- UILabel自适应高度
- UILabel自适应高度代码
- UILabel的自适应高度
- iOS UILabel高度自适应
- UILabel自适应高度
- java图片验证码包括文字和图片的旋转
- iOS的文件管理NSFileManager
- 约德尔测试
- python导出excel
- android官方侧滑菜单DrawerLayout详解
- UILabel自适应高度
- pip使用本地缓存文件来安装包
- 用UIColor创建UIImage
- ont-hot (独热)编码
- C++ Builder 字符串时间格式转换为TDateTime方法
- for循环和for-in循环
- Spring Bean的解析 RuntimeBeanReference
- iOS HTTP到HTTPS证书问题
- 如何判断两个时间是否是同一天