I have a landscape iPad
app and I present a UIImagePickerController
with sourcetype UIImagePickerControllerSourceTypeCamera
to my active view controller modally. However, the live preview is in the wrong orientation and when I take a picture with the wrong orientation, it outputs an image with the correct orientation.
When I rotate the iPad
, it fixes the orientation but it makes a thick black bar on one of the sides of the screen depending on the orientation (the camera overlay view isn't cut off by this black bar... only the preview is).
Everything was fine with iOS5
, but iOS6
messed up the camera.
How do I fix this live preview orientation bug?