【问题标题】:create custom row animation to reload tableviewcell创建自定义行动画以重新加载 tableviewcell
【发布时间】:2011-06-17 18:16:05
【问题描述】:

我知道您可以使用 reloadRowsAtIndexPath:withRowAnimation 重新加载行。 如何创建在替换行而不是内置选项时触发的动画。

一个例子真的很有帮助。 谢谢。

【问题讨论】:

  • “行被替换”是什么意思

标签: iphone uitableview caanimation


【解决方案1】:

你是说……

insertRowsAtIndexPaths:withRowAnimation:, 
deleteRowsAtIndexPaths:withRowAnimation:, 
insertSections:withRowAnimation: and 
deleteSections:withRowAnimation:

另外,"withRowAnimation" 不是一个值,而是一个动画风格:你可以override它。

【讨论】:

  • 是的,这行得通。虽然我正在考虑用核心动画创建的东西。但它很好,我设法使用内置选项。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2014-05-05
  • 1970-01-01
  • 2021-12-03
  • 1970-01-01
  • 2020-02-19
相关资源
最近更新 更多