运动图像一起predetermined路径? [英] Moving image along predetermined path?

查看:128
本文介绍了运动图像一起predetermined路径?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能将图像设置成随着一个按钮的iPhone SDK推一个predetermined轨迹运动?我不是在寻找任何幻想。我工作的一个简单的概念,但是这将节省大量的动画作品。

Is it possible to set an image into motion along a predetermined path with the push of a button in iphone SDK? I'm not looking for anything fancy. I working on a simple concept, but this would save a lot of animation work.

推荐答案

是的。您可以通过创建一个 CAKeyframeAnimation 动画沿路径任何的CALayer并分配 CGPath 路径属性。请参见由比尔Dudney 一个例子这个博客帖子。

Yes. You can animate any CALayer along a path by creating a CAKeyframeAnimation and assigning a CGPath to its path property. See this blog post by Bill Dudney for an example.

这篇关于运动图像一起predetermined路径?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆