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: 170

Filed under:
|

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

Related posts about iphone

Related posts about uitableview