有没有办法重新加载表视图的节头/页脚而不调用
[tableView reloadData];?
实际上,我想在其章节页脚的表格视图的部分中显示单元格的数量.表视图是可编辑的,我使用删除或插入行
– insertRowsAtIndexPaths:withRowAnimation:
– deleteRowsAtIndexPaths:withRowAnimation:
Run Code Online (Sandbox Code Playgroud)
似乎这些方法不会更新部分页脚.奇怪的是,当我调用这些方法时,表视图数据源方法
- (NSString *)tableView:(UITableView *)table titleForFooterInSection:(NSInteger)section
Run Code Online (Sandbox Code Playgroud)
被调用(两次!),但它没有使用新值更新表视图!
任何人都知道如何解决这个问题?