How can I know the values in CABasicAnimation keyPath

前端 未结 2 572
情歌与酒
情歌与酒 2021-02-05 07:17

I find some code like this:

CABasicAnimation *anim = [CABasicAnimation animation];
anim.keyPath = @\"transform.scale\";
anim.fromValue = [NSNumber numberWithFloa         


        
2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-05 07:34

    Core Animation extends KVC to support direct addressing of fields (or pseudo fields) of some struct-type properties of layers. The feature is described in Core Animation Extensions To Key-Value Coding.

提交回复
热议问题