How to animate the hight change of an section header in UITableView?
        Posted  
        
            by mystify
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by mystify
        
        
        
        Published on 2010-04-17T18:01:50Z
        Indexed on 
            2010/04/17
            18:03 UTC
        
        
        Read the original article
        Hit count: 222
        
iphone
|uitableview
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;
    }
}
        © Stack Overflow or respective owner