我试着用
[_tableView reloadSections:<#(NSIndexSet *)#> withRowAnimation:<#(UITableViewRowAnimation)#>];
但是它会重新加载属于我不想要的section的表格单元格
我还尝试通过
提供section header视图- (UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section
,我保留了一个参考。
您是指viewForHeaderInSection
还是您的代码中出现了错别字?如果有对section header视图的引用,并且修改了该视图,则应该在表中更新。如果您所做的更改使视图无法识别为需要重新绘制,则可能必须调用[headerView setNeedsDisplay]
。