I\'ve implemented this method to return the section header height. However, when the height for the section changes, it happens immediately without animation.
I haven't tested this, but sometimes I get unwanted animations when my UITableViewCells change height. The cause of this is that I draw my own cells, and I use CALayers to do so. In the cell's (void)layoutSubviews
I would change the size of my CALayer to be the size of the frame for the cell
myLayer.frame = self.bounds;
When the frame/bounds property of a CALayer changes, it is animated. So in theory, I would say that you could use the method tableView:viewForHeaderInSection: which would allow you to draw your own section header. You could just return a UIView that implements (void)layoutSubviews
and then in that method do
self.layer.frame = self.bounds;
Just an idea.