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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T13:17:13+00:00 2026-05-19T13:17:13+00:00

CAAnimation provides the removedOnCompletion property which defaults to YES. Let’s recognize these facts: A)

  • 0

CAAnimation provides the removedOnCompletion property which defaults to YES.

Let’s recognize these facts:

A) Core Animation only affects the Presentation Tree, but not the Model Tree. When an animation is done, you end up seeing whatever is set in the Model Tree. You can set a fillMode to kCAFillModeBoth for example, which will swap the value from the Presentation Tree over to the Model Tree once the animation is done. This causes your animation to not revert back (which is most likely what you want).

B) I did an experiment. removedOnCompletion = NO will NOT have the same effect as kCAFillModeBoth or kCAFillModeForwards. To be more precise: It has absolutely no effect on how the result looks like when the animation is done. Wether it is “removed” or not, it seems to not affect the Presentation Tree at all.

To explain what removedOnCompletion really does, the documentation is too weak in this regard. I don’t get it. Can anyone explain what exactly would be removed, and what’s the benefit of not having it removed?

My guess is that Apple is talking about the animator object itself, which is added to the layer with -addAnimation:forKey: … but again: What’s the point of keeping it around?

  • 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-19T13:17:14+00:00Added an answer on May 19, 2026 at 1:17 pm

    removedOnCompletion:

    Basically, is the animation removed from the layer’s actions when that animation is done.

    YES – If you intend to use the animation only once, you do not need to use the delegate method to remove the animation from the layer upon completion.

    fillMode:

    This property controls what happens visually when the animation is completed, depending on the type of fill mode specified.

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

Sidebar

Related Questions

I'm using core animation to transition between different view states in my application. However,
I had a problem where I had a series of overlapping CATransition / CAAnimation
I'm animating a UIView's frame property using a CAKeyframeAnimation on the view's CALayer and
I have a simple UIButton with an Alpha property that I would like to
I have an implict animation as follows: [UIView beginAnimations:nil context:nil]; [UIView setAnimationDuration:1]; [UIView setAnimationDelegate:self];
How do I get rid of these warnings Warning:'UIButton' may not respond to '-setPosition:'
I have a CALayer which its position needs to be recomputed as often as
I have seen How to identify CAAnimation within the animationDidStop delegate? , this is
I play an animation like this: - (CCSprite *)explodeWithBatchNode:(CCSpriteBatchNode *)batchNode andAnimation:(CCAnimation *)ani { CCSprite
i have three simple images of a hen which i am trying to animate(hen

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.