Displaying captured image while device orientation is locked

Hello,

I am creating an AR application that can be used on iPad and iPhone.

While using it on iPhone, I am locking the Apps orientation in portrait mode. When taking a snapshot of the ARView while holding the iPhone in a landscape orientation, and displaying the taken image in a gallery view / Image View, the image is always rotated by 90°. Similarly, when the iPhone is held upside down, the displayed image is shown upside down.

Is there a way to make sure that the image is displayed properly?

Displaying captured image while device orientation is locked
 
 
Q