Animate cell height change in UITableView [duplica

2019-04-18 22:33发布

Possible Duplicate:
Can you animate a height change on a UITableViewCell when selected?

I'd like to change the height of a UITableViewCell when it gets selected. I'm able to do this by defining

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath

and calling the tableview's reloadData when the cell gets selected, but I'd like to have the change be animated. Any suggestions on how to go about this?

1条回答
老娘就宠你
2楼-- · 2019-04-18 22:56

Try calling reloadData in an animation block after you have set parameters that will force a new height?

查看更多
登录 后发表回答