Apple文档(
https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/CoreAnimation_guide/AdvancedAnimationTricks/AdvancedAnimationTricks.html)有这个示例:
CATransition* transition = [CATransition animation]; ...
但是当我在Swift中做到这一点:
let transition = CATransition.animation()
我收到错误“animation()’不可用:使用对象构造’CAAnimation()’” – 这是否已被弃用或?如果是的话,过渡的新方式是什么?