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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T10:43:30+00:00 2026-05-29T10:43:30+00:00

I am using Xcode 4.2 to develop a storyboard application. I am trying to

  • 0

I am using Xcode 4.2 to develop a storyboard application.

I am trying to rotate views but it is not working. I made sure that the app supports the 4 rotations in the summary as well as in the “info” section.

I have two types of supported orientations:

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    if (UI_USER_INTERFACE_IDIOM()==UIUserInterfaceIdiomPad) { //check if device is iPad
        return YES;
    }
    else
        return NO;
}

and

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    return YES;
}

I tried it on the iPhone simulator and it is not working, but for the iPad it works perfectly fine… any reasons?

I am using a Tab Bar view controller if this makes any difference …

  • 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-05-29T10:43:32+00:00Added an answer on May 29, 2026 at 10:43 am

    from this document

    All child view controllers in your UITabBarController or
    UINavigationController do not agree on a common orientation set. To
    make sure that all your child view controllers rotate correctly, you
    must implement shouldAutorotateToInterfaceOrientation for each view
    controller representing each tab or navigation level. Each must agree
    on the same orientation for that rotate to occur. That is, they all
    should return YES for the same orientation positions.

    so make sure all view controller in your tab bar controller return YES for shouldAutorotateToInterfaceOrientation:

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

Sidebar

Related Questions

I'm using XCode 4 to develop an application that can be run on iPhone
I am using Corona to develop ios app. I use XCode as IDE. But
I'm just learning C and am using xCode for it (not sure if it
I'm currently using XCode 3.2.4 and OS 4.2 It's been working smoothly but now
I am using XCode to develop a Cocoa touch application for the iOS platform
i'm trying to learn how i can develop on xcode 4 using tools to
I'm an iPhone application developer, I'm trying to develop the WEB BROWSER using the
I am using XCode 4.2 to develop an iPhone App , I am new
We are using Monotouch to develop an application that is specific to the iPad,
I am using XCode 4.2 to develop an application for iPhone and iPad I

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.