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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T22:07:40+00:00 2026-05-28T22:07:40+00:00

In my app I have set the storyboard to allow only horizontal and inverted

  • 0

In my app I have set the storyboard to allow only horizontal and inverted horizontal rotations. I have a single view controller scene with a single UIView subclass in it. Everything worked fine, until I deleted the scene in the IB editor and tried to remake it. I changed no code at all, but now, whenever I run my app in the iOS Simulator, I see this:

enter image description here

Whereas previously I’d see a horizontal iPad screen with the status bar at the top and my grid filling the screen.

self.frame.size.width gives me 1024 and self.frame.size.height returns 748 in awakeFromNib, so my view thinks it has the right size and orientation.

Thinking I’d made a mistake, I deleted the storyboard entirely and made a brand new one, again with a single view controller scene containing a single instance of my UIView subclass. The same thing happens: a weird sideways iPad.

So, what have I done wrong?

EDIT: A Bit more testing reveals that the view itself is also rotated. In other words, the top left origin (0, 0) is actually in the bottom left of that picture above.

Thanks!

Tim

  • 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-28T22:07:41+00:00Added an answer on May 28, 2026 at 10:07 pm

    Try setting the screen autorotation to:

    - (BOOL)shouldAutorotateToInterfaceOrientation:
      (UIInterfaceOrientation)interfaceOrientation
    {
        return (interfaceOrientation == UIInterfaceOrientationPortrait) || 
        (interfaceOrientation == UIInterfaceOrientationPortraitUpsideDown);
    }
    

    You can delete this later if needed. A similar instance as your happened to me. I changed no code, then Storyboard decided to change the orientation of my app. Simply limiting the interface in the code fixed it in storyboard. As I said, once fixed, you can delete the code if you don’t need it.
    Good luck!

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

Sidebar

Related Questions

I have set my app's initial view with storyboard to the main one. I
I have a storyboard based app with a navigation controller as the initial view
I have the following interface set up in storyboard: The controller is a custom
Well in my app I have a navigation controller with a table view, and
I'm stress testing a web app and have set up a windows test program
In my rails app I have user, school, and course models. I have set
I am building a kind of calender web app I have set up the
I have a tableview in my app and I have set tint=1.0 . In
I have an app with four activities. I have set the intent-filter on one
I have set up an app that is registered for remote notifications. - (void)application:(UIApplication*)application

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.