IKImageView无法旋转图像



我正在使用IKImageView来显示图像。然后,我使用rotateImageLeft方法旋转图像,图像在IKImageView中旋转。但是保存后,我发现图像没有旋转,它仍然是原始图片。 你能告诉我问题出在哪里吗?我应该怎么做才能在 IKImageView 中保存旋转的图片

提前非常感谢!

我用下面的代码解决了我的问题

- (IBAction)rotateLeft: (id)sender
{
//@Next (04-Aug-2017): rotate image by library of IKImageView
currentRotationAngle = fmod(currentRotationAngle, 360.);
CGFloat radians = (currentRotationAngle + 90)*M_PI/180;
[_imageView setRotationAngle:radians];
currentRotationAngle +=90;
_imageRef = [_imageView image];
self.isUnsaveDocument = YES;
}

最新更新