【问题标题】:Animate cell height change in UITableView [duplicate]UITableView中的动画单元格高度变化[重复]
【发布时间】:2010-11-07 02:03:28
【问题描述】:

可能重复:
Can you animate a height change on a UITableViewCell when selected?

我想在 UITableViewCell 被选中时更改它的高度。我可以通过定义来做到这一点

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

并在单元格被选中时调用 tableview 的 reloadData,但我希望对更改进行动画处理。有什么建议可以解决这个问题吗?

【问题讨论】:

    标签: iphone uitableview animation height


    【解决方案1】:

    在设置了强制新高度的参数后,尝试在动画块中调用 reloadData 吗?

    【讨论】:

    • 我试过了,没用,虽然我猜它可能取决于 reloadData 中发生的情况
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2010-11-07
    • 1970-01-01
    • 1970-01-01
    • 2019-08-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多