我正在尝试实现在 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/