title: How to animate the frame of an layer with CABasicAnimation?
body: <p>I guess I have to convert the CGRect into an object to pass it to fromValue?</p>
  
  <p>This is how I try it, but it doesn't work:</p>
  
  <pre><code>CABasicAnimation *frameAnimation = [CABasicAnimation animationWithKeyPath:@"frame"];
  frameAnimation.duration = 2.5;
  frameAnimation.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut];
  frameAnimation.fromValue = [NSValue valueWithCGRect:myLayer.frame];
  frameAnimation.toValue = [NSValue valueWithCGRect:theNewFrameRect];
  [myLayer addAnimation:frameAnimation forKey:@"MLC"];
  </code></pre>