title: ios growth animation CGAffineTransformMakeScale moves around
body: <p>I am animating a tree that grows. Like a Tree, I want my UIImage to stay in the same place, so that when I scale it up it appears to grow.</p>
  
  <p>Right now its jumping around, i.e. its growing from the centre - I need it to grow from the bottom.</p>
  
  <p>Is there a way to set the origin/base of the animation. So the scale animation works from the bottom. </p>
  
  <p>Hope that makes sense. here is my code:</p>
  
  <pre><code>[UIView beginAnimations:nil context:nil];
  [UIView setAnimationDuration:1];
  [UIView setAnimationCurve:UIViewAnimationCurveLinear];
  tree.transform = CGAffineTransformMakeScale(1.0f, 1.25f);
  [UIView commitAnimations];
  </code></pre>