Drawing a path with CAKeyFrameAnimation on iPhone

后端 未结 1 1547
故里飘歌
故里飘歌 2021-02-15 15:16

I want to draw a path gradually, i.e. I want the path to appear as if it is drawn by hand. I have managed to create the path I need. I have also managed to create a CAKeyFrameAn

1条回答
  •  难免孤独
    2021-02-15 15:59

    Create a CAShapeLayer with your path and animate the layer's strokeEnd from 0.0 to 1.0. (This is new in iOS SDK 4.2, won't work with previous versions.)

    0 讨论(0)
提交回复
热议问题