Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8580303
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T20:48:00+00:00 2026-06-11T20:48:00+00:00

My app only supports landscape orientations via the supportedInterfaceOrientation properties. Using an iOS prior

  • 0

My app only supports landscape orientations via the supportedInterfaceOrientation properties.

Using an iOS prior to iOS 6, my app can successfully load an instance of UIImagePickerController via presentViewController:animated:completion: even though the UIImagePickerController itself only supports portrait orientation.

The image picker simply presented itself sideways to the user. The user rotated the phone, picked their image, and then rotated back to landscape.

Under iOS 6.0, calling presentViewController:animated:completion: with the UIImagePickerController instance crashes the app. I can prevent the crash by adding portrait options to my supportedInterfaceOrientation properties.

However, operating in portrait really does not make sense for my app. I had thought I could use shouldAutorotateToInterfaceOrientation to allow the app to “support portrait” but only be allowed to rotate to portrait in this one view. But now that method is deprecated, and I can’t use the same technique with shouldAutorotate.

Does anyone have any ideas how I can get around this issue under iOS 6.0?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T20:48:02+00:00Added an answer on June 11, 2026 at 8:48 pm

    iOS 6.1 – fixed

    As of iOS 6.1, this no longer occurs, it is very important to follow my tips in order to avoid a crash under iOS 6.0.x, the below still applies to that.


    iOS 6.0.x workaround

    This is in actual fact a bug in iOS 6.0, this should be fixed in future iOS releases.

    An engineer from Apple has explained this bug and a workaround here: https://devforums.apple.com/message/731764

    This is happening because the Application wants landscape orientation only but some Cocoa Touch View Controllers require strictly Portrait orientation which is the error – not that they should be requiring more then Portrait but their interpretation of the Applications requirements.

    An example of this can be the following:

    iPad app supporting landscape only displays a UIImagePickerController
    via a UIPopoverController. The UIImagePickerController requires
    Portrait orientation, but the app is forcing landscape only. Error
    and… crash

    Other frameworks that have been reported as problematic include the Game Center login view controller.

    The workaround is pretty simple but not ideal… You keep the correct orientations declared in your info.plist/project info pane, but in the Application Delegate class you declare that you allow all orientations.

    Now each View Controller you add to the window must specify itself that it can only be Landscape. Please check the link for more details.


    I cannot stress how much you should not be subclassing UIImagePickerController as the accepted solution is insisting you do.

    enter image description here

    The important thing here is “This class is intended to be used as-is and does not support subclassing.”


    In my case I added this to my application’s delegate (I have a landscape only app), this tells the image picker it can display, because portrait is supported:

    - (NSUInteger)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window{
        return UIInterfaceOrientationMaskAll;
    }
    

    And then in my view controller which happened to be a UINavigationController, I included a category with the following:

    - (NSUInteger)supportedInterfaceOrientations{
        return UIInterfaceOrientationMaskLandscape;
    }
    

    Now my app doesn’t rotate, and the image picker asks the delegate if it can display as portrait and it gets told that’s okay. So all plays out well.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to build an app that only works for landscape device orientations
Currently zxing library supports only on landscape mode.For my app i need to use
My app only supports the landscape right orientation. I'm trying to transition into a
I'm using a barcode scanner library within my iOS project that currently only supports
You can use App.config; but it only supports key/value pairs. You can use .Net
So we build an iPad App that only supports landscape orientation. This is enforced
My Application only supports landscape right. If I start the app holding iPhone in
My app uses only portrait mode. But ABPeoplePickerNavigationController supports landscape. Is it possible to
My app has to support landscape/portrait mode only for tablets, phones will only support
I'm trying to add Jumplist support to my app, but I can only find

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.