What exactly does removedOnCompletion = NO do?

前端 未结 4 1767
闹比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 01:10

    If removedOnCompletion is YES, the animation will be removed on completion and there is nothing to "fill forward" at all. So if you want to use fillMode you must set removedOnCompletion to NO.

提交回复
热议问题