How can I chain Core Animations for different Layers one after the other?

前端 未结 3 825
野的像风
野的像风 2021-02-08 15:28

I have a scrollView with paging enabled and a number N of pages, which are UIViews as subviews of the scrollView.

I\'m trying to do the following:

User scrolls t

3条回答
  •  悲哀的现实
    2021-02-08 16:04

    The beginTime property of a CAAnimation only seems to work if the CAAnimation is part of a CAAnimationGroup. I think you'll also need to set the duration property of the CAAnimationGroup large enough to last until its final animation completes.

    https://stackoverflow.com/a/563486/77567

提交回复
热议问题