在不改变角度的情况下以圆周运动变换 UIImage +可可
我想以圆周运动变换/旋转 UIImage 而不改变图像的角度。下图解释了该要求。 如何使用 UIView 变换属性来完成此操作。提前致谢。
I want to transform/rotate an UIImage in circular motion without changing the angle of the image. Following diagram explains the requirement.
How this can be done using UIView transform property. Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在我看来,您只需要使用 UIView 框架属性。但是,由于您在源和目标之间采用非线性路径,因此您可能必须涉足 CoreAnimation。
查看 CAKeyFrameAnimation 通过任意关键路径对属性进行动画处理。
祝你好运!
Sounds to me like you only need to use the UIView frame property. However, because you are taking a non-linear path between your source and destination you will likely have to dabble with CoreAnimation.
Check out CAKeyFrameAnimation to animate a property through an arbitrary key path.
Good Luck!
我的书提供了沿路径对图像进行动画处理的示例代码:
http://www.apeth。 com/iOSBook/ch17.html#FIGnancyBell
My book provides sample code for animating an image along a path:
http://www.apeth.com/iOSBook/ch17.html#FIGnancyBell