沿预定路径移动图像?
答
是的。您可以通过创建CAKeyframeAnimation
并将CGPath
分配给path
属性来沿路径设置任何CALayer的动画。以this blog post by Bill Dudney为例。
另请参阅此问题:http://*.com/questions/1142727/how-can-i-animate-the-movement-of-a-view-or-image-along-a-curved-path – 2010-03-03 19:28:30