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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:50:26+00:00 2026-05-25T11:50:26+00:00

I have a Tab Bar application for iPad, created using the basic Tab Bar

  • 0

I have a Tab Bar application for iPad, created using the basic Tab Bar template. I have added some custom view controllers (one for each tab, each with a corresponding NIB) and also some extra view controllers with NIBs to be used as modal views. Everything works great until I rotate the device.

My app only supports portrait orientation, so I had this in all my view controllers:

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    return (interfaceOrientation != UIDeviceOrientationLandscapeLeft) &&
    (interfaceOrientation != UIDeviceOrientationLandscapeRight);
}

However, the app would not rotate in the simulator or the device when turned upside down. I double and triple checked that all my view controllers had the above code.

I went through all my NIBs and checked that they all have “Rotate Subviews” ticked. I haven’t changed any of the NIB settings from the defaults anyway, apart from the basic things needed to get them showing in the tab views.

I tried changing the code in all my view controllers to this:

- (BOOL)shouldAutorotateToInterfaceOrientation(UIInterfaceOrientation)interfaceOrientation
{
    return UIInterfaceOrientationIsPortrait(interfaceOrientation);
}

It made no difference. I have made absolutely sure that the same method is being used in all the view controllers. I don’t know what else I can do. I can see no reason why it shouldn’t rotate to the upside down view.

Any help with this would be much appreciated.

  • 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-25T11:50:27+00:00Added an answer on May 25, 2026 at 11:50 am

    Got it! One of my View Controllers was not hooked up to the relevant tab in IB. As I hadn’t added the images or written the code for that View Controller yet, I didn’t notice that it wasn’t associated in IB. I had done the shouldAutorotateToInterfaceOrientation method, but it seems that didn’t take effect until the connection was made in IB.

    Thanks very much for suggestions on this. That’s a highly frustrating problem now dealt with!

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

Sidebar

Related Questions

I have a tab bar application with a navigation controller and view controllers inside
I have a tab bar application, in one tab I have a view that
I have tab bar application and when i press on one of the tabs
I have a tab bar application with a different view on each tab. Each
I have a Tab bar application. and in one of the tab bars I
I have created a Tab Bar Application, removed the default FirstView and SecondView and
I have a Tab Bar Application and I want to simply display a view
I have a tab bar application and when I display a modal view controller,
I've created a tab bar application. I have four tabs; on the selected tab,
I have an iPad application with a simple tab bar. I need to fix

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.