开发者

iphone image rotate only parts of the image

开发者 https://www.devze.com 2023-01-16 16:49 出处:网络
I have a wheel image in the centre of my iPhone application which rotates. On top of that I put an UIImageView but I do not want this to rotate. Unfortunately it is ro开发者_C百科tating as well. How c

I have a wheel image in the centre of my iPhone application which rotates. On top of that I put an UIImageView but I do not want this to rotate. Unfortunately it is ro开发者_C百科tating as well. How can I stop this image from moving as well please?

Thanks


If you rotate a view, all subviews will rotate too. Just add the view (which shouldn't be animated) to another view as a subview.

0

精彩评论

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