定义一个测试用的字符串,然后根据字体、UiLable或UiTextView的宽度在指定模式下算出相应的size。
UILable设置:
UITextView设置:
转自:http://hi.baidu.com/ytugreat/blog/item/5c95c2c5a6c2db079d163da3.html
|
iphone关于UILabel和UITextView的适应高度
最新推荐文章于 2024-09-15 11:38:50 发布
定义一个测试用的字符串,然后根据字体、UiLable或UiTextView的宽度在指定模式下算出相应的size。
UILable设置:
UITextView设置:
转自:http://hi.baidu.com/ytugreat/blog/item/5c95c2c5a6c2db079d163da3.html
|