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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T15:59:28+00:00 2026-06-14T15:59:28+00:00

I encounter landscape orientation issues when I create Ipad apps for IOS 5 on

  • 0

I encounter landscape orientation issues when I create Ipad apps for IOS 5 on Xcode 4.5
I saw few related question but most of them are opposite of my situation.

I dont’ use any code like Bool autorotate I just choose landscape on interface builder. Use autolayout is deselected.

When I create app I choose IOS Deployment Target 5.1 on project folder(blue icon)

enter image description here

Build settings is architecture Base Sdk is IOS 6

enter image description here

In storyboard navigation controller is set to landscape and interface document is set to 5.1

enter image description here

In IOS 6 simulator landscape works well:

enter image description here

But in IOS 5.1 Simulator landscape does not work and disorientated

enter image description here

What am I missing ? How can I make this work for both 5.1 and 6 versions?

EDIT=====

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    if (interfaceOrientation==UIInterfaceOrientationLandscapeRight)
        return YES;

    return NO;
}

Above code does not work either. It is still the same.

  • 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-14T15:59:29+00:00Added an answer on June 14, 2026 at 3:59 pm

    You should override shouldAutorotateToInterfaceOrientation: on the view controller and return YES for your desired orientations, for example

    -(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation {
    return toInterfaceOrientation == UIInterfaceOrientationLandscapeLeft || toInterfaceOrientation == UIInterfaceOrientationLandscapeRight;
    

    }

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

Sidebar

Related Questions

Encounter following lines of code, but couldn't understand it. What is this (/ ...
I encounter identical issues with some Ruby gems in Rails application. When I use:
This is something I encounter frequently, but I don't know the elegant way of
I encounter some issues on trying to calculate distance between one location and a
I encounter this question when I want to parse a file with large size
I frequently encounter some definitions for Win32API structures (but not limited to it) that
I encounter a strange thing while coding in Xcode 4.3. The nature of problem
I encounter performances issues while using a RelativeLayout (wrapped into a ScrollView) containing 153
I encounter this issue when calculating the price for a product but the formula
I encounter error like this in my sql in running my program, How can

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.