开发者

How do you rotate a UIView in an animation?

开发者 https://www.devze.com 2022-12-30 09:10 出处:网络
I can a开发者_StackOverflow中文版nimate a UIView with sizes and positions etc. But how do you rotate it? Change its transform matrix...here is a link to the transform property of views transforms

I can a开发者_StackOverflow中文版nimate a UIView with sizes and positions etc. But how do you rotate it?


Change its transform matrix...here is a link to the transform property of views transforms

You can use CGAFfineTransforms to set this property, you can either make a new one, or use CGAffineTransformMakeRotation that takes a degree as input, here is a reference to that CGAffineTransforms

hope that helps

0

精彩评论

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