UITableViewCell - heightForRowAtIndexPath - 动画速度xcode目标c

时间:2012-06-27 07:40:37

标签: xcode animation uitableview heightforrowatindexpath

使用

更改单元格的行高时
-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
  if (a)
    return 55
  else
    return 266
}

然后,

[aTableView beginUpdates];

如果表格单元格已更改,则表格单元格将设置为高度。

无论如何都要控制这个动画的速度吗?

1 个答案:

答案 0 :(得分:1)

没有。无法控制表视图的动画速度。 也许您可以编写自定义表视图,然后您可以根据需要控制许多内容。

相关问题