自定义表格的每个单元格高度

时间:2010-01-03 08:52:28

标签: objective-c iphone cocoa-touch uitableview

我想根据来自网络的动态数据调整每个单元格高度。那么,我如何根据每个数据拟合单元格的高度?

1 个答案:

答案 0 :(得分:0)

您应该在委托

中实现以下方法
   - (CGFloat)tableView:(UITableView *)tableView 
heightForRowAtIndexPath:(NSIndexPath *)indexPath

查看Apple文档页面here