title: How can I chain animations in iPhone-OS?
body: <p>I want to do some sophisticated animations. But I only know how to animate a block of changes. Is there a way to chain animations, so that I could for example make changes A -> B -> C -> D -> E -> F (and so on), while the core-animation waits until each animation has finished and then proceeds to the next one?</p>
  
  <p>In particular, I want to do this: I have an UIImageView that shows a cube.</p>
  
  <p>Phase 1) Cube is flat on the floor</p>
  
  <p>Phase 2) Cube rotates slightly to left, while the rotation origin is in bottom left.</p>
  
  <p>Phase 3) Cube rotates slightly to right, while the rotation origin is in the bottom right.</p>
  
  <p>These phases repeat 10 times, and stop at Phase 1). Also, the wiggling becomes lesser with time.</p>
  
  <p>I know how to animate ONE change in a block, but how could I do such a repeating-thing with some sophisticated code in between? It's not the same thing over time. It changes, since the wiggling becomes lesser and lesser until it stops.</p>