Reputation:
i want to rotate my UIview to particular angle and stop that rotation in that angle.any help pls?
Upvotes: 0
Views: 425
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