UIImagePickerController confused by landscape-only layout
UIImagePickerController confused by landscape-only layout
- Subject: UIImagePickerController confused by landscape-only layout
- From: Carl Hoefs <email@hidden>
- Date: Wed, 17 Dec 2014 17:27:20 -0700
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 (email@hidden)
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:
This email sent to email@hidden