Get current CAAnimation transform value

前端 未结 4 700
感情败类
感情败类 2021-01-11 23:11

I want to access get the value of the transform scale at a point in time. Here is the animation creation :

    CABasicAnimation *grow = [CABasicAnimation ani         


        
4条回答
  •  旧时难觅i
    2021-01-11 23:52

    The CALayer documentation describes presentationLayer quite clearly:

    The layer object returned by this method provides a close approximation of the layer that is currently being displayed onscreen. While an animation is in progress, you can retrieve this object and use it to get the current values for those animations.

提交回复
热议问题