【发布时间】:2012-08-21 21:19:12
【问题描述】:
我在我的表格视图中创建了自定义单元格,有些单元格有图像并且很高,有些只是文本。单元格的高度是在 heightForRowAtIndexPath 中计算的,我相信这是在调用 cellForRowAtIndexPath 之前完成的。无论高度如何,我都想在单元格底部放置一个图像视图,但我不确定如何从 cellForRowAtIndexPath 中获取计算出的高度?
【问题讨论】:
-
CGFloat height = [tableView.delegate tableView:tableView heightForRowAtIndexPath:indexPath];