I want to make some complex animations. But I only know how to revive the block of changes. Is there a way to link the animation so that I can, for example, make changes A → B → C → D → E → F (and so on), while the kernel-animation waits until each animation ends and then goes to the next?
In particular, I want to do this: I have a UIImageView that shows a cube.
Phase 1) Flat cube on the floor
Phase 2) The cube rotates slightly to the left, and the start of rotation is in the lower left corner.
Phase 3) The cube rotates slightly to the right, and the start of rotation is in the lower right corner.
These phases are repeated 10 times and stop at Phase 1). In addition, from time to time it gets smaller.
I know how to animate one change in a block, but how can I do such a repeating thing with some complex code in between? This is not the same with time. It changes as the vortex becomes smaller and smaller until it stops.
source
share