Reputation: 31
I want to rotate UIImageView and below is my Code.
_imageView1.center = CGPointMake(84, 240);
_imageView1.transform = CGAffineTransformMakeRotation(0.86);
But nothing is happen
Upvotes: 1
Views: 103
Reputation: 3329
Use below code :
float degrees = 20; //the value in degrees
imageView.transform = CGAffineTransformMakeRotation(degrees * M_PI/180);
Upvotes: 3