开发者

Giving a UIImageView a "turning" animation

开发者 https://www.devze.com 2023-04-12 09:49 出处:网络
I have 开发者_如何学Pythona UIImageView and I would like it to have a turning movement, like turning around something. I don\'t want to use UIView animation, but something else. How can I do this plea

I have 开发者_如何学Pythona UIImageView and I would like it to have a turning movement, like turning around something. I don't want to use UIView animation, but something else. How can I do this please?


You could use

CGAffineTransform rotation = CGAffineTransformMakeRotation(...);
[imageView setTransform:rotation];

and change the rotation amount often enough for it to be smooth, but using Core Animation (like in this post) would be better and more optimized.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号