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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T04:22:29+00:00 2026-05-28T04:22:29+00:00

On the ipad, in ios objective C, I am having problems with the rotation

  • 0

On the ipad, in ios objective C, I am having problems with the rotation moves in one modal view. I give the position of the element in the shouldAutoRotate method and its parent view can rotate too, but when I rotate the modal view the elements don’t put in the correct place.

For more information, if I open the view in portrait mode I get this data:

<UIView: 0x72bc160; frame = (0 0; 768 1004); clipsToBounds = YES; 
autoresize = W+H; layer = <CALayer: 0x13f324f0>

And in landscape mode:

<UIView: 0x1358f3b0; frame = (0 0; 768 748); clipsToBounds = YES; 
autoresize = W+H; layer = <CALayer: 0x1358f3e0>>

But if I rotate the view the horizontal frame changes by vertical frame…

Am I doing something wrong?

  • 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-28T04:22:29+00:00Added an answer on May 28, 2026 at 4:22 am

    I’ve had a lot of fun with view controller rotation. There are two things to keep in mind:

    1. Assuming you’re covering the entire screen (and don’t do anything specific with subview transformation), make sure you are presenting the modal view controller from the broadest possible view controller, often the root view controller of the application.
    2. Make sure every conceptual containing view controller passes along the rotation events to its conceptual child view controllers. (This was very ill-defined pre-iOS 5.)

    When these things happened to me, it was because the view controllers in the background got the rotation events, but the particular view controller I was presenting from was ignoring them and not passing them along to the modal view controller, leading to inconsistency.

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

Sidebar

Related Questions

I wrote a quick objective-C method that uses Amazon's AWS iOS SDK to synchronously
I'm new to objective-c and iOS development. I need an iPad application to display
Is it possible to use Objective-C++ for iOS application (iPhone, iPad, iPod touch) development?
On an iPad (iOS 4.2.1) I need to do the following programmatically (Objective-C, Cocoa
Using Xcode 4.2.1 iPad iOS 5.0.1, create a new Single View iPad project. In
One of my beta testers with an 1st generation iPad (iOS 5.0.1) is complaining
Is it possible to shutdown an iOS device (iPhone, iPad, iPod) with objective c?
On an iPad running iOS 4.3.5 I get this error: MonoTouch.Foundation.MonoTouchException: Objective-C exception thrown.
What programming languages can one use to develop iPhone, iPod Touch and iPad (iOS)
I'm creating an iPad application which needs a UIPopoverController like this one (I mean,

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.