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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T02:40:39+00:00 2026-06-11T02:40:39+00:00

I am using a Tab Bar Controller in my app. In the most part

  • 0

I am using a Tab Bar Controller in my app. In the most part of the app’s behavior we have one single orientation (interfaceOrientationPortrait). But i have a view that runs a video in WebView. When i am running this video, the orientation remains portrait. I want to put for all orientations.

Well, i used the return type YES in my Video’s class. Nothing has changed. I changed the return type to YES in my RootViewController class. Nothing has changed.

I would like to change the orientation only for the Video.

  • 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-06-11T02:40:41+00:00Added an answer on June 11, 2026 at 2:40 am

    View controllers that are part of a tab bar controller won’t rotate to an orientation if any of the tab bar controllers can not rotate to that orientation (at least if the tab bar is visible). So maybe you want to update all your controllers’ method in order to let the rotation happen if the web view controller is visible on the tab bar controller.

    If you need a deeper explanation, just ask. Good luck!

    Edit (example code)

    This is what could be your rotation methods for your tab bar controller view controllers:

    - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
    {
        if ((self.tabBarController.selectedIndex == kMyWebViewControllerIndex))
        {
            return YES;
        } else
        {
            return (orientation == UIInterfaceOrientationPortrait);
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using a tab bar controller for my app. If I'm in one
I have an app with 3 views. I am using a tab bar controller
I am using a tab bar controller in my app but I load a
I have a multiview application using a tab bar to switch views. One is
For my IOS app, i am using a tab bar controller on a mainstoryboard.
I have an ios5 app developed using storyboards that currently displays a tab bar
my app starts with a tab bar controller which have 5 tabs. At start
I have an app with a tab bar. Each tab has its own view
I have a three view tab bar app the second view of which I
I have an MKMapView as part of a Navigation Controller in a Tab Bar

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.