I have a table where I want to reload (and change the height) only the Header section, but not the cells inside this section. The reason I want to do this is because I use the fade animation in the header, for example:
[self.tableView reloadSections:[NSIndexSet indexSetWithIndex:0] withRowAnimation:UITableViewRowAnimationFade];
But at the same time, I am adding a cell in this section with
[self.tableView insertRowsAtIndexPaths: @[[NSIndexPath indexPathForRow:0 inSection:0]] withRowAnimation:UITableViewRowAnimationRight];
I would like to be able to save a UITableViewRowAnimationRight for the cell to be added, but when I reload the section, the fade animation applies to the entire section. Is there a way to simply reload sectionHeader, not the cells in the section?
ios objective-c iphone cocoa-touch uitableview
Kyle rosenbluth
source share