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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T18:43:13+00:00 2026-05-25T18:43:13+00:00

When I write my animation code within beginAnimation-commitAnimatin blocks I get a bouncing effect,

  • 0

When I write my animation code within beginAnimation-commitAnimatin blocks I get a bouncing effect, however I don’t get the same effect when I do the same animation with the method written in the subject. Here are two ways to do what I want:

[UIView beginAnimations:nil context:nil];
[UIView setAnimationDelay:0.5];
[UIView setAnimationDuration:1];
[UIView setAnimationCurve:UIViewAnimationCurveEaseIn];

[UIView setAnimationRepeatAutoreverses:YES];
[UIView setAnimationRepeatCount:2];
[UIView setAnimationDelegate:self];
[UIView setAnimationDidStopSelector:
@selector(resetTheChickenProperties)];

theChicken.frame = CGRectMake(15, 330, 62, 90);
[UIView commitAnimations];

the way shown above the image (it’s an egg) goes down in the y direction until it hits the ground and bounces back. Bouncing effect is clearly observed. But if I do the same thing with the help of the animateWithDuration:delay:options:animations:compeletion method the egg does not bounce. It rather seems like hung on a spring.

  • 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-25T18:43:14+00:00Added an answer on May 25, 2026 at 6:43 pm

    OK, I’ve found the subtle detail everyone needs to take note of in order to get the animation and transitions work with the method available in iOS 4 and later.When specifying the animation/transition options for the method we must use the constants with the word “Option” in it. So instead of writing

    UIViewAnimationCurveEaseIn|UIViewAnimationTransitionCurlUp
    

    we should write

    UIViewAnimationOptionCurveEaseIn|UIViewAnimationOptionTransitionCurlUp
    

    after fixing that the animation worked just fine. I was able to get the real bouncing effect

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

Sidebar

Related Questions

Write code to determine if a number is divisible by 3. The input to
I'm animating an UIImage view with this code CABasicAnimation *animation; animation = [CABasicAnimation animationWithKeyPath:@transform.rotation];
I'm compiling using Code::Blocks on Windows 7 using the MinGW compiler (which I can
I'm going to write a simple animation in XPCE ( four glasses puzzle to
I'm trying to get this piece of code working: <?php $color_animation = $_GET['color_animation']; if
I'm trying to freeze the last frame of an animation. The following code used
I'm wondering what is wrong with my code (why is the animation so jerky):
I am starting to learn to use UIView animation. So I wrote the following
I write vbs that create ole atomation object On Error Resume Next dim objShell
Write a class ListNode which has the following properties: int value; ListNode *next; Provide

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.