【发布时间】:2012-04-05 12:27:18
【问题描述】:
我从服务器获取了一些文本并将其放入 UILabel 中,它将被添加到 UITableViewCell 中,并且每次文本可以很小或很大或多行时都会更改。我的问题是如何使这个 UILabel 自动适应文本(多行)并调整 UITableViewCell 的大小以适应 UILabel?
【问题讨论】:
-
这是一个关于堆栈的重复问题,所以我刚刚用这个答案的解决方案更新了堆栈。看看这个解决方案:How to make a UITableViewCell with a UITextView inside, that dynamically adjust its height, on the basis of the UITextView?
标签: iphone cocoa-touch ipad uitableview