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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:08:14+00:00 2026-05-26T22:08:14+00:00

I am designing an application in which i have a table view controller. Now

  • 0

I am designing an application in which i have a table view controller. Now I want that when I rotate device then instead of table view a scroll with page control will appear. So that I can scroll image with page control.

And when I again rotate to portrait mode then it will so again table view.

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation{
// Return YES for supported orientations
  if(interfaceOrientation == UIInterfaceOrientationLandscapeLeft || interfaceOrientation == UIInterfaceOrientationLandscapeRight){
    self.navigationController.navigationBarHidden=TRUE;
    self.tabBarController.tabBar.hidden=TRUE;


  }
  else{
    self.navigationController.navigationBarHidden=FALSE;
    self.tabBarController.tabBar.hidden=FALSE;
    self.tableView.hidden=FALSE;

  }

  return YES;
}

How do I achieve this?

  • 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-26T22:08:15+00:00Added an answer on May 26, 2026 at 10:08 pm

    You can implement didRotateFromInterfaceOrientation to detect when the screen rotates, then add your code to add/show/remove/hide/whatever your views based on the current orientation.

    -(void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation {
        switch (self.interfaceOrientation) {
            case UIInterfaceOrientationPortrait:
                //Do stuff
                break;
    
            default:
                break;
        }
    }
    

    self.interfaceOrientation gives the current orientation, (portrait, upsidedown, landscapeleft, landscaperight), and you also have access to the previous orientation if you need it.

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

Sidebar

Related Questions

I'm designing an application which will have a network interface for feeding out large
I'm currently designing an application which I will ultimately want to move to Windows
I was just designing this application and made many .aspx files which have my
I'm designing a Java application using SWT. I have some tables which will display
I have a tabbar iPhone application in which tabbar is the root controller and
I am designing a silverlight application in which i have a image control in
I have been trying different techniques while designing this application, which to me is
I have this query for an application that I am designing. There is a
I am designing an application which will have a heavy reliance on searching using
Designing AIR application which has to have server side push or notification, don't know

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.