Search code examples
iosios6uiimagepickercontrolleruiinterfaceorientation

UIImagePickerController is landscape while taking photo, but portrait during preview


.. and I don't like that because my entire app is Landscape-Only.

How can I get the UIImagePickerController to show the preview in Landscape orientation?

Here's an example of what I mean. When I begin taking the photo it looks like this:

enter image description here

But after I snap the photo and the UIImagePickerController shows me the preview with Use/Retake buttons, it looks like this:

enter image description here

How can I tell the UIImagePickerController to stay in landscape the entire time, showing the preview in a landscape position?


Solution

  • I'm guessing you've read the documentation that says UIImagePickerController class supports portrait mode only:

    http://developer.apple.com/library/ios/ipad/#documentation/uikit/reference/UIImagePickerController_Class/UIImagePickerController/UIImagePickerController.html

    ...and that you're looking for an alternative/workaround?