我有一个表视图,在这里我想重新加载(并更改sectionHeader的高度),而不是本节中的单元格。我之所以要这样做,是因为我在标题上使用了淡出动画,如下所示:
[self.tableView reloadSections:[NSIndexSet indexSetWithIndex:0]
withRowAnimation:UITableViewRowAnimationFade];但与此同时,我在该部分中添加了一个单元格
[self.tableView insertRowsAtIndexPaths:
@[[NSIndexPath indexPathForRow:0 inSection:0]]
withRowAnimation:UITableViewRowAnimationRight];我希望能够保留要添加的单元格的UITableViewRowAnimationRight,但是当我重新加载区段时,淡入动画就会应用到整个部分。是否有任何方法来重新加载sectionHeader,而不是加载部分中的单元格?
发布于 2013-08-18 20:03:07
只需创建两个单独的括号
[tableView beginUpdates];
[tableView endUpdates];用于两个插入/更改。
https://stackoverflow.com/questions/18302672
复制相似问题