我在表格视图中使用自定义单元格。我设置了单元格的高度,但是对于表格中的第10个单元格,我需要调整大小。
答案 0 :(得分:1)
您需要实施UITableViewDelegate
方法heightForRowAtIndexPath:
这样的事情:
- (CGFloat) tableView: (UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
if ( indexPath.row == 10 )
return 100.0;
return 40.0;
}