【发布时间】:2015-09-10 07:30:55
【问题描述】:
需要UITextView 的所需高度。 sizeThatFits 返回更大,但比boundingRectWithSize 正确的高度。为什么存在差异?
在两个地方我需要知道高度。在cellForRowAtIndexPath 和heightForRowAtIndexPath 中。
我不认为总是在heightForRowAtIndexPath 中创建一个UITextView 只是为了知道需要什么高度。
你知道什么解决方法来计算UITextView 在heightForRowAtIndexPath 中的高度?
【问题讨论】:
标签: ios uitableview uitextview