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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T13:05:38+00:00 2026-05-23T13:05:38+00:00

I am presenting a modal view controller like this from a table view (ignore

  • 0

I am presenting a modal view controller like this from a table view (ignore the memory leaks, just testing..):

[self presentModalViewController:[[SignatureVC alloc] init] animated:YES];

and in my SignatureVC, I am implementing this:

-(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
    return (interfaceOrientation == UIInterfaceOrientationLandscapeLeft);
}

I want SignatureVC to be only in landscape mode. However, after presenting the modal view controller, the orientation doesn’t change.
What am I doing wrong? Thanks.

  • 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-23T13:05:38+00:00Added an answer on May 23, 2026 at 1:05 pm

    The method -shouldAutorotateToInterfaceOrientation: does not rotate the interface orientation. It merely allows the interface orientation to rotate if the device orientation rotates.

    If the modal view appears when the device is in portrait, then it will be in portrait. However, once you rotate to landscapeLeft, it will remain locked in that orientation with this code.

    To force the interface to rotate, you can use

    [UIApplication sharedApplication].statusBarOrientation = UIInterfaceOrientationLandscapeRight;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a view controller (view A) presenting a modal view (B) when the
Is there some property so that I can reference the presenting view controller from
I am presenting a modal view controller. If it matters, it is scrolling up
I'm dismissing a modal view controller and then immediately presenting another one, but the
I have a view controller and I am presenting it modal, as in... UIViewController
I'm writing an iPhone app. Starting from a view controller in a navigation stack
Is there a way to present a modal view controller view before an action
I need to present a modal view controller and be notified when it is
I am presenting a modal navigation bar controller initialized with a root controller (which
So I am presenting a full screen modal view when the user selects an

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.