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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:41:44+00:00 2026-05-23T08:41:44+00:00

I have implemented the method willRotateToInterfaceOrientation , and my iPhone app nicely animates the

  • 0

I have implemented the method willRotateToInterfaceOrientation, and my iPhone app nicely animates the orientation movement when I switch between landscape and portrait.

My question is: is it possible to have a different type of animation? Are there other built in animations that I could use for that transition? Or could I tamper with it myself? Can anyone show me example of code to change the animation?

  • 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-23T08:41:45+00:00Added an answer on May 23, 2026 at 8:41 am

    Absolutely it’s possible. Here’s a custom animation that I did to move several views around to different places:

    - (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation 
                                    duration:(NSTimeInterval)duration {
        [UIView beginAnimations:nil context:NULL]; {
            [UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
            [UIView setAnimationDuration:0.5];
            [UIView setAnimationDelegate:self];
    
            if (toInterfaceOrientation == UIInterfaceOrientationPortrait ||
                toInterfaceOrientation == UIInterfaceOrientationPortraitUpsideDown) {
                [myImage setCenter:CGPointMake(384.0,170.0)];
                [firstLabel setCenter:CGPointMake(235.0,358.0)];
                [secondLabel setCenter:CGPointMake(519.0,358.0)];
                [button0 setCenter:CGPointMake(164.0,508.0)];
                [button1 setCenter:CGPointMake(384.0,508.0)];
                [button2 setCenter:CGPointMake(604.0,508.0)];
                [button3 setCenter:CGPointMake(274.0,666.0)];
                [button4 setCenter:CGPointMake(494.0,666.0)];
                [button5 setCenter:CGPointMake(164.0,824.0)];
                [button6 setCenter:CGPointMake(384.0,824.0)];
                [button7 setCenter:CGPointMake(604.0,824.0)];
                [button8 setCenter:CGPointMake(164.0,954.0)];
                [button9 setCenter:CGPointMake(604.0,954.0)];       
            } else {
                [myImage setCenter:CGPointMake(350.0,173.0)];
                [firstLabel setCenter:CGPointMake(844.0,66.0)];
                [secondLabel setCenter:CGPointMake(844.0,114.0)];
                [button0 setCenter:CGPointMake(140.0,450.0)];
                [button1 setCenter:CGPointMake(388.0,450.0)];
                [button2 setCenter:CGPointMake(636.0,450.0)];
                [button3 setCenter:CGPointMake(884.0,450.0)];
                [button4 setCenter:CGPointMake(140.0,638.0)];
                [button5 setCenter:CGPointMake(388.0,638.0)];
                [button6 setCenter:CGPointMake(636.0,638.0)];
                [button7 setCenter:CGPointMake(884.0,638.0)];
                [button8 setCenter:CGPointMake(844.0,190.0)];
                [button9 setCenter:CGPointMake(844.0,280.0)];       
            }   
        } [UIView commitAnimations];            
    }
    

    This worked great as each image flies across the screen to land in a new spot. You can use something like this to create all kinds of effects.

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

Sidebar

Related Questions

I have implemented a small method that imports an picture on the iPhone screen,
I have implemented a ToString() override method for my class in my Webservice and
We have implemented a popup window as a modal dialog using the IE method:
Which of the following has the best performance? I have seen method two implemented
We have a COM object implemented with C++/ATL that includes a method which will
I have some .NET remoting code where a factory method, implemented in some server
I have successfully implemented this method of using the Win32 API to set the
I have a little Problem, i have implemented the following method to open an
I am confused why my app is crashing with this error. I have implemented
I have implemented a simple close() method for all the Backbone views which disposes

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.