-2
我有3个图像,Square,Portrait和Landscape。我想旋转角度90,180,270和360度的图像。如何使用Objective-C?旋转ios中的imageview
我有3个图像,Square,Portrait和Landscape。我想旋转角度90,180,270和360度的图像。如何使用Objective-C?旋转ios中的imageview
如果只想显示图像,将其添加到ImageView
而做到这一点:
imageView.transform = CGAffineTransformMakeRotation(M_PI_2);
将图像旋转90度。希望这有助于.. :)
试试这个
CGAffineTransform变换;
transform = CGAffineTransformRotate(self.imageView.transform, (M_PI/2));
self.imageView.transform = transform;
的ImageView将旋转基于当前位置....