我做了:
[tableView setNeedsLayout]
和 [tableView setNeedsDisplay]
,但是这不会调用该委托(delegate)。有没有一种方法可以在不重新加载数据的情况下重新布局 tableView(即:调用 reloadData)
最佳答案
尝试:
[tableView beginUpdates];
//do stuff...
[tableView endUpdates];
关于iphone - 调用方式 - (CGFloat)tableView :(UITableView *)tableView heightForFooterInSection:(NSInteger)section without reloading,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9598124/