I wish to have a UIImageView
that will "float" over the screen, moving through several positions.
It quite clear how to code it to go from point A to point B using [UIView animateWithDuration:...]
. It even sounds reasonable to add point C in the "completion" block. You know what? I can also add point D to the completion block of point C, but after that, I start getting a spagetti code that I get lost in.
Nowhere could I find a method where you perform some sort of animation-positions-chain, something like an array of CGPoints
that run and the UIImageView
goes between them one after the other.
Anyone has any idea how to do that?