How to nest multiple CA animation like UIView animateWithDuration does? For example, I need to animate 6 animations where each next animation goes after previous one. So, with UIView animateWithDuration, every next animation is called from complete block. Does CA allows to use blocks and etc.? If no then how to perform nested sequential animations?
How to nest multiple CA animation like UIView animateWithDuration does? For example, I need
Share
CAAnimationdoesn’t have a block-based API, but you could use its delegate methodanimationDidStop:finished:to chain multiple animations.If you do this a lot, you may want to write your own block-based wrapper for this.