UIImage *rotatedImage = [UIImage imageWithCGImage:[img CGImage] scale:1.0 orientation:imageView.image.imageOrientation];
// Setting img to imageview
[imageView setImage:rotatedImage];
Above is code which works perfectly fine in iOS 6, but does not rotate the image in iOS 7.
I am getting the correct values for imageOrientation but still image does not rotate.
Any idea why?
Thanks.