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 8553179
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T14:35:34+00:00 2026-06-11T14:35:34+00:00

I set up XCode 4.5 and iOS6 simulator a few minutes ago. My app

  • 0

I set up XCode 4.5 and iOS6 simulator a few minutes ago.
My app supports all 4 orientations of the iPhone,
portrait bottom and top home button, landscape left and right.

Well, I put that to the .plist as it is required by iOS6 and also the old shouldRotateTo… method is still there returning YES.

But in the simulator, the App is not rotating to portrait top home button.

Why? Is this by purpose? Would it work correct on device?

Thanks.

  • 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-11T14:35:36+00:00Added an answer on June 11, 2026 at 2:35 pm

    OK,
    I found the answer now myself.

    It is not enough to have

    - (BOOL)shouldAutorotate {
    
        return YES;
    }
    
    - (NSUInteger)supportedInterfaceOrientations {
    
        return UIInterfaceOrientationMaskAll;
    }
    

    in YOUR ViewController if it is pushed into a UINavigationViewController.
    The UINavigationViewController also has to have those methods.
    Preferably, you do this by having a small Category on UINavigationViewController.

    This is my UINavigationController-Rotation.h:

    @interface UINavigationController (Rotation)
    @end
    

    and my UINavigationController-Rotation.m:

    #import "UINavigationController-Rotation.h"
    
    @implementation UINavigationController (Rotation)
    
    #pragma From UINavigationController
    
    - (BOOL)shouldAutorotate {
    
        BOOL result = self.topViewController.shouldAutorotate;
    
        return result;
    }
    
    - (NSUInteger)supportedInterfaceOrientations {
    
        NSUInteger result = self.topViewController.supportedInterfaceOrientations;
    
        return result;
    }
    
    #pragma -
    
    @end
    

    Thanks for helping me!

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

Sidebar

Related Questions

I have try to set icon for my App in the xCode. In the
Looking for the best way to set-up an iPhone project in XCode ... namely:
i set up xcode to install about 4 hours ago from the appstore. It
Without my iPhone Distribution Certificate set within XCode 4 (on Release and Release-> Any
I'm trying to build an xcode project and run it through the iPhone Simulator
I have a problem when I try to set up Xcode . shown in
I've set up the Xcode storyboard of my drill down table to branch out
I have an Xcode project with several static library dependancies set up in the
Is there a specific Xcode compiler flag that gets set when compiling for iPad?
I’m trying to set the header search path in Xcode 4 (using LLVM 2.0

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.