简体   繁体   中英

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

Use below code :

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

OR Check this link

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM