user141302
user141302

Reputation:

rotating View in angle?

i want to rotate my UIview to particular angle and stop that rotation in that angle.any help pls?

Upvotes: 0

Views: 425

Answers (1)

kennytm
kennytm

Reputation: 523724

To rotate a UIView, change its .transform property.

theView.transform = CGAffineTransformMakeRotation(M_PI * 25 / 180);

Use UIView animation block to animate the rotation, as usual.

Upvotes: 0

Related Questions