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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T08:33:48+00:00 2026-06-13T08:33:48+00:00

Hi i have developed an iPad app which will completely run in landscape mode

  • 0

Hi i have developed an iPad app which will completely run in landscape mode then installed the same app in ios 6 it forced to run in portrait mode so i added few things in my code through which ican run my app in landscape mode in both ios6 and lower versions. But my problem is after i rotate then i push to next view landscape right turns into landscape left. If i dont rotate then no problem it works perfectly. Even if i rotate also it should work perfectly pls help me to do this.

In view did load i gave the below lines.

    - (void)viewDidLoad {
    [super viewDidLoad];
if (IOS_OLDER_THAN_6)
       [[UIApplication sharedApplication] setStatusBarOrientation:UIDeviceOrientationLandscapeLeft animated:NO];
       //[[UIApplication sharedApplication] setStatusBarOrientation:UIInterfaceOrientationLandscapeRight animated:NO];
}

Then i replaced the should autorotate with the below lines.

I will check the iOS version if it less than 6 i added below lines

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation{
return (toInterfaceOrientation == UIInterfaceOrientationLandscapeLeft) ||(toInterfaceOrientation == UIInterfaceOrientationLandscapeRight);

}

If The iOS version is 6 and above i will give the below lines of code

    -(BOOL)shouldAutorotate
{
    return YES;
}
- (NSUInteger)supportedInterfaceOrientations
{
    return UIInterfaceOrientationMaskLandscape;
}

In the above code i have mentioned that it should support both landscapeleft and landscape right but in viewDidLoad i mentioned only landscape left so that is the problem. Some One guide me to give status orientation for both landscape left and landscapeRight. Even tried giving two orientations in two lines but no change so i commented one. That is the reason for my issue. Please someone help me to solve this issue.

  • 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-13T08:33:49+00:00Added an answer on June 13, 2026 at 8:33 am

    You dont need to give

    [[UIApplication sharedApplication] setStatusBarOrientation:UIDeviceOrientationLandscapeLeft animated:NO];

    for your status bar to rotate. These two delegates

    -(BOOL)shouldAutorotate
    {
        return YES;
    }
    - (NSUInteger)supportedInterfaceOrientations
    {
        return UIInterfaceOrientationMaskLandscape;
    }
    

    are sufficient. Also, when I tested the application on simulator it was not working properly but when I run the same application on device, then orientation is working properly. So, once try to run the application you have created on iOS6 device.

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

Sidebar

Related Questions

I have developed the ipad app which displays images and other product details from
I have developed an iPad app which is currently in the testing phase. I
I have a team that developed an iOS App for both iPhone and iPad.
i have developed an app which executes sql jobs. When I click on execute
I've developed an iPad app using PhoneGap that requires users to log in. Will
I have developed an app for ios 5 recently but when I was telling
I have been trying to develop an app for my ipad which i can
I have problem with my app. It is developed for both devices. On iPad
I have developed a simple utility for my iPhone and iPad apps which places
I'm new to iOS development and to owning an iPad; I have an app

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.