繁体   English   中英

是否有可能重新加载与tableview中的表格单元格分开的节标题视图

[英]Is there a possible way to reload section header view separate from the table cells in tableview

我试过用

[_tableView reloadSections:<#(NSIndexSet *)#> withRowAnimation:<#(UITableViewRowAnimation)#>];

但它会重新加载属于我不想要的部分的表格单元格。

我还尝试提供节标题视图

- (UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section

我保留了一个参考。 它也没用。

你的意思是viewForHeaderInSection还是代码中的拼写错误? 如果您对节标题视图有引用并修改了视图,则应在表中更新。 如果您进行了视图无法识别需要重绘的更改,则可能必须调用[headerView setNeedsDisplay]

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM