[英]Rotating UIImageView is not working properly
I want to rotate UIImageView and below is my Code. 我想旋转UIImageView,下面是我的代码。
_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 或者检查此链接
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.