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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T23:55:49+00:00 2026-05-13T23:55:49+00:00

My view hierarchy looks like this: tab bar -> navigation bar -> table view

  • 0

My view hierarchy looks like this:

tab bar -> navigation bar -> table view -> view 1 -> view 2 (UIWebView)

How can I rotate view 2 so it can be displayed in both landscape & portrait mode?

  • 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-13T23:55:49+00:00Added an answer on May 13, 2026 at 11:55 pm

    Heres your fix…just solved the same problem. The issue is the tab bar controller is responding no to the shouldRotate method.

    Ignore the advice in the apple docs and create a subclass for tab view controller. In that subclass handle the shouldRotate

    -(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
    {
    // Always returning YES means the view will rotate to accomodate any
    orientation.
    return YES; }

    Heres my complete subclass
    TSTabBarController.h

    #import <Foundation/Foundation.h>
    @interface TSTabBarController : UITabBarController {
    
    }
    
    @end
    

    and the implementation file.

    #import "TSTabBarController.h"
    
    
    @implementation TSTabBarController
    -(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
        // Always returning YES means the view will rotate to accomodate any orientation.
        return YES;
    }
    
    
    @end
    

    If you change the class in IB for the tab bar controller you should just work.

    Hope this helps.
    Rich

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

Sidebar

Related Questions

I have a view hierarchy like this: nav1 (UINavigationController, top level object in nib)
i have this MainViewController, which is a controller for my table view. Whenever I
I'm trying to have my view hierarchy loaded through calls to loadNibNamed. For a
I have a fairly simple view hierarchy in my iPad app. Window -> RootView
I have a somewhat complex iOS view hierarchy. One piece of text is an
I've got following view hierarchy: I want ScrollView with nested RelativeLayout to be between
I've got relative layout in my view hierarchy and I want it to have
I am developing an app but have yet to get the optimal navigation flow
I'm not sure how to ask this question, but here goes... I am rendering
I've read about HMVC (Hierarchic Model View Controller) and it's flexible structure. Have a

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.