我正在使用IKImageView显示一个图像。然后,我使用rotateImageLeft方法对图像进行旋转,在IKImageView中对图像进行旋转。但在我保存后,我已经认识到图像没有旋转,它仍然是原始的图片。你能告诉我问题出在哪里吗?在IKImageView中保存旋转的图片应该怎么做?
非常感谢您的提前!
发布于 2017-08-17 14:31:50
我用下面的代码解决了我的问题
- (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;
}https://stackoverflow.com/questions/45708232
复制相似问题