UIImagePickerController camera preview is portrait in landscape app
Posted
by Jane Sales
on Stack Overflow
See other posts from Stack Overflow
or by Jane Sales
Published on 2009-02-11T18:08:23Z
Indexed on
2010/06/11
7:02 UTC
Read the original article
Hit count: 413
iphone
|cocoa-touch
In my landscape-only iPhone application, I launch a UIImagePickerController to take a photo, but the live image displayed from the camera is in portrait orientation, with blank space around it. The image is rotated.
Once the camera button is pressed, the preview is very messy, with most of the preview off screen, and views not correctly aligned.
Apple has acknowledged that this is defect, and is working on it.
My question is, does anyone have a work-around (legal or illegal) that would allow me to get this working now. I wouldn't release to the App Store with an illegal fix, but I would have a much better app for user testing - currently the camera is pretty much unusable in landscape.
I will attach a simple test project and images if I can.
Edit - just to clarify, the image I get is correctly landscape. I want the camera & preview UIs to look right!
© Stack Overflow or respective owner