How can I make the iOS 8 camera image picker (UIImagePickerController aka 
PLUICameraViewController) present properly in a landscape-only mode app? When I 
do this, the picker comes up in landscape mode but the camera image within it 
is displayed rotated by +90 degrees no matter the rotation of the iPhone. If I 
do snap an image, it does come out properly landscaped.

For -supportedInterfaceOrientationsForWindow: my app delegate returns 
UIInterfaceOrientationMaskAll. If I try returning 
UIInterfaceOrientationMaskLandscape the app crashes:

*** Terminating app due to uncaught exception 
'UIApplicationInvalidInterfaceOrientation', reason: 'Supported orientations has 
no common orientation with the application, and [PLUICameraViewController 
shouldAutorotate] is returning YES’

I had this working properly in iOS 7, but iOS 8 seems to have new rules about 
this.

-Carl


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to