1

I want to rotate UIImageView and below is my Code.

  _imageView1.center = CGPointMake(84, 240);
  _imageView1.transform = CGAffineTransformMakeRotation(0.86);

But nothing is happen

Anonymous
  • 31
  • 5

1 Answers1

3

Use below code :

float degrees = 20; //the value in degrees
imageView.transform = CGAffineTransformMakeRotation(degrees * M_PI/180);

OR Check this link

Community
  • 1
  • 1
Darshan Kunjadiya
  • 3,323
  • 1
  • 29
  • 31