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

  • SEARCH
  • Home
  • 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 8866345
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T16:45:48+00:00 2026-06-14T16:45:48+00:00

In a shipping app that has worked correctly under iOS 5.X and supports all

  • 0

In a shipping app that has worked correctly under iOS 5.X and supports all orientations, built against iOS 6 it always starts in portrait even when the ipad/simulator is in landscape).

I did add the new rotation methods

- (BOOL)shouldAutorotate NS_AVAILABLE_IOS(6_0);
- (NSUInteger)supportedInterfaceOrientations NS_AVAILABLE_IOS(6_0);

but that makes no difference.

Note we do not use a navigation controller as the root view controller. Otherwise the app rotates correctly after the initial problem.

The root view controller handles all the decision making for rotations and is added to the main window as

    self.window.rootViewController = viewController;

I have all the rotations in the plist key set UISupportedInterfaceOrientations~ipad

Any ideas why the initial rotation is ignored?

Under 5.1 it calls shouldAutorotateToInterfaceOrientation and willRotateToInterfaceOrientation, etc. correctly but not under 6.0. If I build against 5.1 SDK then all is well.

  • 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-14T16:45:48+00:00Added an answer on June 14, 2026 at 4:45 pm

    After talking with Apple, they claim it is a bug in Xcode 4.5 on existing projects. Either you can create a new project and re-add everything (hard to do with a big project like ours). Or add you rotation logic something like this:

    - (void)viewWillLayoutSubviews
    {
        if ( ! afterFirstTime )
        {
            [self handleRotationFor:self.interfaceOrientation];
            afterFirstTime = YES;
        }
    }
    
    - (void) willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration
    {
        [self handleRotationFor:toInterfaceOrientation];
    }
    

    on your root view controller. I got this answer right before their break Thanksgiving week so it might be a little sketchy, but this code does work.

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

Sidebar

Related Questions

I am writing an iOS app that uses live audio analysis. It has an
I have a rails app (rails 3.1.3) that has a shopping cart model. I
I'm working on an app that has a shopping cart. When I add a
I am developing an ecommerce app that is using the UPS shipping webservice. I
I've got a sizable Qt app that has been in development since the Qt
I have an iPhone app that's shipping ( vConqr - you should go and
I have a very strange bug in a shipping iPad/iPhone app that I can't
I'm writing a silverlight application that resembles a shopping cart system. This app can
I have a free shipping price rule which is configured like this: All customer
I need to call a variable that is a customer’s shipping address attribute, in

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.