erotsppa
erotsppa

Reputation: 15021

How do you rotate a UIView in an animation?

I can animate a UIView with sizes and positions etc. But how do you rotate it?

Upvotes: 1

Views: 1709

Answers (1)

Daniel
Daniel

Reputation: 22395

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

Upvotes: 1

Related Questions