Chaining Core Animation animations

前端 未结 6 1636
一整个雨季
一整个雨季 2020-12-02 10:22

Which is the most elegant and modular way to chain animation in a Core Animation context?

I mean to do animations that starts just when other finis

6条回答
  •  孤城傲影
    2020-12-02 10:34

    I don't believe you can "nest" CA animations as you have in your example.

    You need to specify a delegate for the animation and put your second "transition" within the animationDidStop:finished: selector of the delegate.

    Might want to have a look at Apple's Animation Types & Timing Programming Guide.

提交回复
热议问题