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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T16:34:48+00:00 2026-05-17T16:34:48+00:00

Someone else asked a similar question previously, but I am interested in knowing whether

  • 0

Someone else asked a similar question previously, but I am interested in knowing whether the autorotate feature of the iPhone SDK will allow us to replace the rotation animation with another transition, such as a fade-in/fade-out. For a modal view, we can set the modalTransitionStyle but there is no such property for autorotate.

If I can’t leverage the built-in functionality, how else can I implement this functionality?

  • 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-17T16:34:48+00:00Added an answer on May 17, 2026 at 4:34 pm

    There’s the willAnimateRotationToInterfaceOrientation:duration: method, from the docs:

    The default implementation
    of this method does nothing. If you
    override this method, you should not
    override either the
    willAnimateFirstHalfOfRotationToInterfaceOrientation:duration:
    or
    willAnimateSecondHalfOfRotationFromInterfaceOrientation:duration:
    method.

    This method is called from within the
    animation block that is used to rotate
    the view. You can override this method
    and use it to configure additional
    animations that should occur during
    the view rotation. For example, you
    could use it to adjust the zoom level
    of your content, change the scroller
    position, or modify other animatable
    properties of your view.

    I guess you can modify it from here, and before and after with – willRotateToInterfaceOrientation:duration: and – didRotateFromInterfaceOrientation:.

    This seems inefficient and sub-par to me, as it does not actually replace the transition at all.

    I would make a category on UIView, that includes methods such as –willRotateUsingTransition: and pass a parameter that will tell it to fade, then set the view’s alpha to zero. In each subclass override this to include any subviews that need their alpha changed, if that is applicable. Call this method when the views are about to be rotated (with the methods above) and then a clean-up method that restore the alphas when they will appear again.

    Edit: Docs Docs Docs. A quick look, again, reveals this method: - (void)willAnimateSecondHalfOfRotationFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation duration:(NSTimeInterval)duration, which I thought to be deprecated. As part of the discussion it has the text from the second paragraph I posted from the docs earlier.

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

Sidebar

Related Questions

(I understand that someone else asked a similar question and it was closed as
Someone else has already asked a somewhat similar question: Validate an Xml file against
I asked a similar question like this yesterday but after waiting for ever I
I asked a similar question, but I couldn't get it working exactly. I'm building
I'm trying to understand someone else's Perl code without knowing much Perl myself. I
Apols if this has been asked before. I am using someone else's PHP code
Apologies for using someone else's brain for this, but I'm sure this is a
When viewing someone else's webpage containing an applet, how can I force Internet Explorer
So I'm amending someone else's code, and they've used a data-bound Accordion control. I
A table exists that someone else loaded. I need to query against the table,

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.