ios - 类似于 Facebook Paper 的表格单元格动画

标签 ios uitableview animation

我正在尝试实现在 Facebook 的 Paper 应用程序的设置菜单中使用的转换:http://blog.brianlovin.com/design-details-paper-by-facebook/#1 .我正在使用我的自定义 UIViewControllerAnimatedTransitioning 对象,但无论我使用哪种类型的动画,我都无法达到相同的效果。所以我有一些问题:

1) 使用了哪个动画?看起来细胞开始快速移动,然后停在它们的最终位置。看起来我需要 POPDecayAnimation,但结果还差得远。

2) 动画之间的延迟是否通过根据单元格索引设置动画的 beginTime 来实现?或者第一个细胞的速度比最后一个细胞大?

最佳答案

正如 Injectios 建议的那样 AMWaveTransition有点接近Paper的动画。经过一些调整,我最终使用了它。

这个问题我也在pop github page上问过,可以查看here .如果您想自己实现此动画,他们的回答可能会有用:

Hey! I implemented that in Paper. The animations on each cell are POPSpringAnimations, and they're connected together by (every frame) updating the toValue of each animation to point to the current value of the one before. Hope that helps!

关于ios - 类似于 Facebook Paper 的表格单元格动画,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26096317/

相关文章:

ios - 简单的ios动画: rotate window and reverse

jQuery:减少重绘

ios - 一种用于 iOS 应用程序而不是 Storyboard的手动页面布局策略

swift - Tableview自定义单元格将数据传递到下一页

ios - 多个 UITableViews 在一个 UIViewController 中一次可见

ios - UITableView 单元格中的粗体字体

html - Coinflip 动画没有正确旋转(以及 css 动画中的多个变换)

ios - 检索与玩家分数相似/接近的 Game Center 分数

iphone - 使用 ITK 在 iPad 中显示 dicom 图像

ios - 无法分配 ViewController 的 Bool 成员