CABasicAnimation resets to initial value after animation completes

后端 未结 15 2556
闹比i
闹比i 2020-12-04 05:44

I am rotating a CALayer and trying to stop it at its final position after animation is completed.

But after animation completes it resets to its initial position.

15条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-04 06:13

    Set the following property:

    animationObject.removedOnCompletion = NO;
    

提交回复
热议问题