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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T08:09:42+00:00 2026-05-24T08:09:42+00:00

I have a UITabController app which is definitely autorotating .. but it is rotating

  • 0

I have a UITabController app which is definitely autorotating .. but it is rotating off center.

In my -shouldAutorotateToInterfaceOrientation:, I return YES for both Landscape orientations and for Portrait (not PortraitUpsideDown). But, again, it is rotating off-center, that is, when it rotates right to LandscapeRight and left to LandscapeLeft, the contents of the UIView appear against the left boundary/margin.

The entire contents of the UIView are embedded in a UIScrollView in order to keep the geometrical arrangement of each content object together, but the appearance against the left margin occurs with or without this enclosure in a UIScrollView. I have tried to overcome this within my overridden -willRotateToInterfaceOrientation and alternately in a -didRotateFromInterfaceOrientation method, but no luck at all.

FYI, the contents below the top UIView are a ScrollView, a UIImage, a UILabel, a UITextView and a UIButton (from top to bottom). The reason I started out with a ScrollView is that I was hoping I could place the bottom UIButton to be way below the UITextView … but this is a challenge for later after I solve the rotation center problem.

Okay, I’ve figured out what is wrong, but I don’t have a clue how to fix it. When I click on the top-most UIView within IB, I see orientation = Portrait. When I change that to Landscape, the whole view shifts left just like what happens when the iOS Simulator runs.

For this top-most view, I select Mode = center and nothing changes.

I really need some big-time help here, so thanks in advance

John Love

  • 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-24T08:09:43+00:00Added an answer on May 24, 2026 at 8:09 am

    As far as autorotation is concerned, I have solved it:

    See this follow-up as to how.

    Thanks bunches

    [SOLVED]

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

Sidebar

Related Questions

I am building an iPad app which basically has a UITabController which controls and
Have searched the database but need to specifically sum(of hours flown or days off)in
Have a (rather complex) app that works fine on iOS 4 but fails on
Have just started using Visual Studio Professional's built-in unit testing features, which as I
I have a UIView in a UITabController . And there is a UITableView in
Have converted devise new session from erb to Haml but doens't work, this is
I have an App and, when I press the 'i' button, to show the
Have created a ATL COM project through which I am inserting Menu Items to
Have a look on following application http://itunes.apple.com/us/app/fatbooth/id372268904?mt=8 i think they are using the same
Have anyone used Redmine Documentor which lets you convert PHP to HTML to Redmine

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.