• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
UIImagePickerController confused by landscape-only layout
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Observing changes in Table
  • Next by Date: NSTextView and Syntax Highlighting
  • Previous by thread: Re: How to make a TableColumn unsortable
  • Next by thread: NSTextView and Syntax Highlighting
  • Index(es):
    • Date
    • Thread