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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T17:20:01+00:00 2026-06-14T17:20:01+00:00

I have created a universal application for iPhone and iPad. In this application, the

  • 0

I have created a universal application for iPhone and iPad. In this application, the iPhone is navigation type and the iPad is tab bar type. The iPhone supports both landscape and portrait orientation, the iPad application supports only landscape.

In the iPad I am displaying the TabBarController after the login window (present model view), when I run the iPad application first time it always run in the portrait mode. Even if I set the orientation mode to landscape and also should auto rotate for landscape.

So please can any one suggest me where I am wrong or how I forcefully display the view in landscape 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-06-14T17:20:02+00:00Added an answer on June 14, 2026 at 5:20 pm

    I forcefully changed the orientation using below code. and its works fine for me:

    if ([[UIDevice currentDevice] respondsToSelector:@selector (setOrientation:)]) {
      SEL selector = NSSelectorFromString (@" setOrientation:");
      NSInvocation *invocation = [NSInvocation invocationWithMethodSignature:[UIDevice instanceMethodSignatureForSelector:selector]];
      [invocation setSelector:selector];
      [invocation setTarget:[UIDevice currentDevice]];
      int Val = UIInterfaceOrientationLandscapeRight;
      [invocation setArgument:& val atIndex:2];
      [invocation invoke];
     }
    

    Thanks

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

Sidebar

Related Questions

I have created an ios application which supports both iphone and ipad I have
I have made my application universal for iPhone and iPad (window-based application; universal) from
Im converting an Iphone app to a universal App, I have created an Ipad
I have created a universal app for iPhone & iPad. I have a confusion
I was doing a project as Universal binary for iPhone/iPad. I created the iPhone
I have created a universal app but would like to temporarly disable ipad until
I have a universal application created in storyboard mode. It is set-up to automatically
I have created a universal window based application in xcode 4. Additionally I created
I have created Map application for iPhone and I developed same Map application on
I have created a JSP / servlets application running in Tomcat 7. It runs

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.