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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T03:20:29+00:00 2026-06-18T03:20:29+00:00

I am writing app for iPhone. It works fine but in iPad it does

  • 0

I am writing app for iPhone. It works fine but in iPad it does not scale correctly. I have landscape view and I did it programatically. Then i am doing push. Then it shows this:

enter image description here

i want it to rotate and fullscreen. Please help me. Thanks in advance.

  • 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-18T03:20:31+00:00Added an answer on June 18, 2026 at 3:20 am

    you can check and implement Orientation in ios6 or ios5 like bellow code And information Put Method in Each Class:

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

    and check every time in ViewWillApear device Oriantation like:-

    - (void)willRotateToOrientation:(UIInterfaceOrientation)newOrientation {
            if (UIDeviceOrientationIsLandscape([UIDevice currentDevice].orientation))
            {
                if (newOrientation == UIInterfaceOrientationLandscapeLeft || newOrientation == UIInterfaceOrientationLandscapeRight) {
    
                  //set your landscap View Frame
                    [self supportedInterfaceOrientations];
    
                }
    
    
    
            }
            else if (UIDeviceOrientationIsPortrait([UIDevice currentDevice].orientation))
            {
                if(newOrientation == UIInterfaceOrientationPortrait || newOrientation == UIInterfaceOrientationPortraitUpsideDown){
          //set your Potrait View Frame
                    [self supportedInterfaceOrientations];
    
                }
            }
            // Handle rotation
        }
    
    
        -(void)viewWillAppear:(BOOL)animated
        {
            [self willRotateToOrientation:[[UIDevice currentDevice] orientation]];  
            [super viewWillAppear:YES];
        }
    

    UPDATE

    likely people use checking deviceorientation like below way in putting this line in to ViewWillApear:-

    [[UIApplication sharedApplication] statusBarOrientation];
        [[UIDevice currentDevice] orientation];
        [[UIDevice currentDevice] beginGeneratingDeviceOrientationNotifications];
        [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(deviceRotated:) name:UIDeviceOrientationDidChangeNotification object:nil];
    

    and

    -(void)deviceRotated:(NSNotification*)notification
    {
    
        UIInterfaceOrientation orientation = [[UIApplication sharedApplication] statusBarOrientation];
        if(orientation == UIInterfaceOrientationLandscapeLeft || orientation == UIInterfaceOrientationLandscapeRight)
        {
            //Do your stuff for landscap
        }
        else if(orientation == UIInterfaceOrientationPortrait || toInterfaceOrientation == UIInterfaceOrientationPortraitUpsideDown)
        {
          //Do your stuff for potrait
    
        }
    
    }
    

    IN IOS5 only landscap you can do like bellow:

    -(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
    
        if (interfaceOrientation == UIInterfaceOrientationLandscapeLeft || interfaceOrientation == UIInterfaceOrientationLandscapeRight) {
    
    
            return YES;
        }
        else
        {
            return NO;
        }
    }
    

    if you wish to support all oriantation you need to just return YES like:-

     -(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
    
                return YES;  
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing an iPhone App that relies on getting the device location. Management have
I'm writing an iPhone app for a client, and they have requested a feature
I am writing an app for the iPhone and iPad and I need it
I'm thinking of writing an app for the iphone. But I'm confused in regards
I have a 32bit iMac that I am writing an iPhone app in Xcode
I have an iPhone app that I am writing and it has 2 targets
I'm writing an iPhone app. Starting from a view controller in a navigation stack
Writing an iPhone app in Objective-C, I have a date in string form (in
I am writing an iPhone app, that requires cloud back-end DB storage. I have
I'm writing an iPhone app which works against my own server. Basically, it's 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.