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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T14:10:43+00:00 2026-05-26T14:10:43+00:00

I am currently working on a tabBar application. My tabBar controller is the rootViewController

  • 0

I am currently working on a tabBar application. My tabBar controller is the rootViewController and I have 3 tabs. Each tab will have several UIWebView’s on them which I would like to be able to support orientation once the webview has loaded. Once the webview has closed then orientation is no longer supported. How can I tell my other viewControllers to handle orientation instead of the rootViewController?

I hope I explained this to where it’s clear.

As always TIA,

T

  • 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-26T14:10:44+00:00Added an answer on May 26, 2026 at 2:10 pm

    Ok this is a shot in the dark – This might not be what you are asking.

    To support multiple orientations you need to do 2 things.

    1. Check the orientation when the ViewController is first loaded.
    2. Respond to orientation changed notifications / override orientation changed methods.

    Here is how I do it:

    - (BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation 
    {
        // Call my method to handle orientations
        [self layoutViewsForOrientation:toInterfaceOrientation];
        return YES;
    }
    
    - (void) viewWillAppear:(BOOL)animated 
    {
        // ...
        // Some code .....
        // ...
        // Call my method to handle orientations
        [self layoutViewsForOrientation:self.interfaceOrientation];
    }
    
    
    - (void) layoutViewsForOrientation:(UIInterfaceOrientation) orientation 
    {
        UIInterfaceOrientationIsLandscape(orientation) {
            // Move views about if needed
        } else {
            // ....
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently working on an application that uses a view controller and a tabBar
I'm working on an application with three tabs plus a small view in which
Im currently working on a site which will contain a products catalog. I am
I'm currently working on a consumer mobile application project and have read that 40%
I'm currently playing with UISplitView Controller as I've got to have some of them
I'm working on an Android app having an always visible tabbar. However, each tab
I have a tab bar application where everything is working fine. I have rotations
Currently working on a bespoke ecommerce application using Codeigniter. I have a products table
i have an application which uses CoreData/.sqlite to store my data, a tab bar
I am currently working on my own implementation of a tab bar for 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.