title: CABasicAnimation not animating my property
body: <p>I've been trying to understand what is wrong with my animation and I still haven't figure it out. I think it should be really straight forward, but there is probably something I'm missing, even after reading lot of examples and documentation.</p>
  
  <p>My problem comes originally form the fact that on the iPhone, you cannot resize layers automatically (with the view). The documentation says otherwise but there is no autoresizeMask for the layer in the SDKs. So I decided to make a little workaround and animate the layer myself.</p>
  
  <p>I've got this simple piece of code that should do a simple resize animation. The values are good and I even set the delegate in order to trace if the anim start/end.</p>
  
  <pre><code>// I've got a property named layerImage (which is a CALayer)
  - (void)animateTestWithFrame:(CGRect)value {
      CABasicAnimation *animation = [CABasicAnimation animationWithKeyPath:@"layerImage.frame"];
      animation.duration = 1;
      animation.fromValue = [NSValue valueWithCGRect:self.frame];
      animation.toValue = [NSValue valueWithCGRect:value];
      animation.removedOnCompletion = YES;
      animation.delegate = self;
  
      [self.layer addAnimation:animation forKey:@"layerImage.frame"];
  }
  </code></pre>
  
  <p>So, any ideas? (This view that contains the code is the subview of a subview of the window if that could make a difference)</p>
  
  <p>--- EDIT ---</p>
  
  <p>It seems that frame is not animatable via CABasicAnimation and the named property "frame". When using bounds, I've got some strange result, but at least I'm getting something. Will continue investigating on this.</p>