I’ve implemented this method to return the section header height. However, when the height for the section changes, it happens immediately without animation.
Is there an animation for that?
- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section {
if (flatHeader) {
return 50.0f;
} else {
return 100.0f;
}
}
I’m not 100% sure this will work for a table header but it works for table rows so it’s worth a shot. I have an instance variable
headerHeightinitially set to 44.0 and I change it as so:In my code I return the
headerHeightinheightForRowAtIndexPathbut you can try it inheightForHeaderInSection: