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