Anonymous
Anonymous

Reputation: 31

Rotating UIImageView is not working properly

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

Answers (1)

Darshan Kunjadiya
Darshan Kunjadiya

Reputation: 3329

Use below code :

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

OR Check this link

Upvotes: 3

Related Questions