title: objective c: CGAffineTransformMakeRotation
body: <p>I have an Image that I want to dangle back and forth (once) around a fixed point. So I have the following code:</p>
  
  <pre><code>[UIView beginAnimations:nil context:NULL];
  [UIView setAnimationDuration:1.5];
  myDial.transform = CGAffineTransformMakeRotation(degreesToRadians(45)); //lineA
  [UIView commitAnimations];
  
  [UIView beginAnimations:nil context:NULL];
  [UIView setAnimationDuration:1.5];
  myDial.transform = CGAffineTransformMakeRotation(degreesToRadians(0 )); //lineB
  [UIView commitAnimations];
  </code></pre>
  
  <p>What happens when I run the above code is that lineA gets executed immediately (and not in 1.5 seconds). Right after that lineB gets executed in 1.5seconds. I want both animations to take 1.5 seconds each. How can I do this</p>