title: How do I animate the simultaneous rotation and scaling of a view?
body: <p>I have this view and I do some rotation transformation to it using something like</p>
  
  <pre><code>myView.transform = CGAffineTransformMakeRotation(degreesToRadian(90));
  //The view was originally at 0 degrees.
  </code></pre>
  
  <p>at some other point of my code, I would like to scale the view animating it, so I do</p>
  
  <pre><code>[UIView beginAnimations:nil context:NULL];
  [UIView setAnimationDuration:1.0];
  myViews.transform = CGAffineTransformMakeScale(2.0f, 2.0f);
  [UIView commitAnimations];
  </code></pre>
  
  <p>but when I do that the animation is performed as the view is at 0 degrees, ignoring the previous transformation. It simply assumes as the view is yet at zero degrees, so, this animation scales the view and rotates it back to 0 degrees (!!!!?????)</p>
  
  <p>Is this some bug or am I missing something?
  thanks.</p>