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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T02:52:13+00:00 2026-06-17T02:52:13+00:00

I have an app where I only support landscape orientation, it works great in

  • 0

I have an app where I only support landscape orientation, it works great in ios6 but in ios5 some of the subviews appear to have portait coordinates and sizes. I have put

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

everywhere I can imagine, yet these views seem stuck to portait, my width param seems to be the height and vice versa.

The main view for the appear appears to be correct but some subviews seem wrong especially ones that calculate their position and size from other elements, I am afraid to swap the dimensions since this would break ios6 and i dont want to do any conditional code if I can avoid it.

Has anyone seen this? I read a few other questions but they seemed to deal with handling the rotation, but in my case i am not rotating.

Basically in my viewDidLoad for my navigation controller

my frame has:

2013-01-10 17:14:29.445 EdwardsSync[29070:c07] Width:: 768.000000
2013-01-10 17:14:29.445 EdwardsSync[29070:c07] Height:: 1024.000000

even though it appears in landscape. This is true of frame and bounds.

interesting if I wait till viewDidAppear the coordinates are correct.

is there a way to tell my app the orientation sooner?

  • 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-17T02:52:14+00:00Added an answer on June 17, 2026 at 2:52 am

    Also go into the xib in Interface Builder and adjust the dimensions of the view. Properties under view select Orientation Landscape. It’s under Simulated Metrics. Also Size Metrics you can specify 1024 x 768, etc.

    In Build Settings remove the Portrait Views if you want.

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

Sidebar

Related Questions

I have an iPhone app, which is running only in landscape mode, but recently
My app supports portrait, landscape left and lansdscape right orientation, but in some places
I have built an app that works only when not run as a Windows
i have an app that sends out email but i have to only send
I have an MVC 1.0 app just setup but it only shows the Index.aspx
I have an application which normally is a portrait app and only show landscape
I am upgrading a legacy app to iOS 6, which only supports landscape orientation.
My app only supports the landscape right orientation. I'm trying to transition into a
I have main menu in my app supporting only landscape mode. I implement landscape
I have a tab-based Android app. Currently, it does not support landscape mode -

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.