【发布时间】:2016-05-01 00:39:02
【问题描述】:
今天我在 Apple News App 和 Pinterest App 中发现了放大效果,我想知道我怎样才能达到类似的效果。我读到了 Pinterest 的博客https://engineering.pinterest.com/blog/behind-pins-building-pinterest-30-ios
它说
为此,我们使用了 UINavigationControllerDelegate 的 animationControllerForOperation 方法提供了一个 UIViewControllerAnimatedTransitioning 对象来执行过渡
我无法弄清楚 CBLPinViewTransition 类型 UIViewControllerAnimatedTransitioning 的背后是什么
看起来我可能需要在
func animateTransition(transitionContext: UIViewControllerContextTransitioning) {
// Perform the animation
}
当我实现协议 UIViewControllerAnimatedTransitioning 和 UIViewControllerTransitioningDelegate 如 Mathew 的博客 http://mathewsanders.com/animated-transitions-in-swift/ 中所述时
我是否朝着正确的方向前进?任何人都可以对如何实现这一点有任何想法。
【问题讨论】:
标签: ios swift core-animation layer