What exactly does removedOnCompletion = NO do?

前端 未结 4 1766
闹比i
闹比i 2021-02-02 00:35

CAAnimation provides the removedOnCompletion property which defaults to YES.

Let\'s recognize these facts:

A) Core Animation only affects the Presentation Tree,

4条回答
  •  梦如初夏
    2021-02-02 00:58

    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.

提交回复
热议问题