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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T18:19:31+00:00 2026-05-11T18:19:31+00:00

I am attemting to transition from one UIView to another, when the user rotates

  • 0

I am attemting to transition from one UIView to another, when the user rotates the device. This, in of itself, is not difficult. However, since I am displaying completely different content after the rotation, the default animation provided by UIKit (rotating the currently displayed view) is inappropriate conceptually.

Simply disabling the animation and swapping the views suddenly is tolerable, but is far below the polish I’m building into the rest of the app. What I would prefer to do is this:

When shouldAutorotateToInterfaceOrientation: is called, I would like to grab an opaque view snapshot, a screenshot if you will, of the user view before rotation. Then after the rotation is completed and the system has applied the view transforms etc, I can show the snapshot view I saved and animate a transition of my choice to my new view. After it is completed, I can release my snapshot and move on.

Is there a way to do this that is not expensive?

The only other option I can think of is to return NO on all orientations other than my default one, and then react by applying my own animations and transforms. I’d prefer to use the system to do this however, as I feel it is likely doing it myself could cause “undefined” keyboard behavior in the manually rotated view, etc.

Thoughts?

  • 1 1 Answer
  • 3 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-11T18:19:31+00:00Added an answer on May 11, 2026 at 6:19 pm

    I can guarantee you [window drawRect:] won’t work. Most views don’t implement drawRect: and it’s certainly not recursive like on the mac.

    drawInContext: is also pretty much hosed simalarly, as it’s fundamentally asking the layer to draw itself, not its sublayers recursively. “Default implementation does nothing.” says it all.

    I implementing this for the Clif Bar Save Our Snow app in the app store by doing the following:

    • Walk the layer hierarchy recursively, getting the contents from each layer. If it smells like an image, use the CGContext methods to draw it into your context.
    • While walking, make sure to apply the transformations/positions of each layer as you call recursively

    Yes, a rather large pain in the ass. But yes, it works pretty well and got through by Apple :).

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

Sidebar

Related Questions

Attempting to use the data series from this example no longer passes the JSONLint
So, I'm attempting to offset this html by 300 pixels, from the top and
I'm attempting to display a tabbed panel but the tabs are not displaying. This
I'm trying to make a push animation from one side using a CATransition .
I am attempting to transition an existing program to use the new time facilities
I am attempting to insert data into a local SQLITE database file from a
I'm creating a Java applet from a large scale pre-existing project (Vizster). I am
I'm attempting to setup a retweet button with some pre-written post text. However I
First off, I don't know if this is possible, but let me describe my
I am attempting to write the results from an SQL query into text files.

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.