如何在iOS中沿弯曲路径移动视图 [英] How to move a view along a curved path in iOS

查看:354
本文介绍了如何在iOS中沿弯曲路径移动视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在曲线路径中动画/移动视图,是否可以使用UIAnimation。

How to animate/move the view in the curve path, is it possible to do using UIAnimation.

像在图像中一样移动路径中的视图。

Like moving a view in the path as in the image.

推荐答案

您可以使用Core Animation和CAKeyFrameAnimation来定义曲线点。请参阅本教程: http://nachbaur.com/2011/01 / 07 / core-animation-part-4 /

You can do it using Core Animation and CAKeyFrameAnimation to define the curve points. See this tutorial: http://nachbaur.com/2011/01/07/core-animation-part-4/

这篇关于如何在iOS中沿弯曲路径移动视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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