【发布时间】:2013-11-15 08:08:36
【问题描述】:
UIImage *rotatedImage = [UIImage imageWithCGImage:[img CGImage] scale:1.0 orientation:imageView.image.imageOrientation];
// Setting img to imageview
[imageView setImage:rotatedImage];
以上代码在 iOS 6 中运行良好,但在 iOS 7 中不旋转图像。
我得到了正确的 imageOrientation 值,但静止图像没有旋转。
知道为什么吗?
谢谢。
【问题讨论】:
标签: ios7 uiimage image-rotation uiimageorientation