开发者

Giving a UIImageView a "turning" animation

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜