title: Why does my CAKeyframeAnimation not get executed?
body: <p>This' my code in which I'm trying to change the size of my imageView. If you can point out any error, I'll be really grateful..</p>
  
  <pre><code>    UIImageView *imageViewForAnimation = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"ravan.jpg"]];
      imageViewForAnimation.alpha = 1.0f;
      CGSize size1=CGSizeMake(60,60);
      CGSize size2=CGSizeMake(40,40);
      CGSize size3=CGSizeMake(20,20);
      CAKeyframeAnimation *customFrameAnimation = [CAKeyframeAnimation animationWithKeyPath:@"frame"];
      NSArray *sizeValues = [NSArray arrayWithObjects:[NSValue valueWithCGSize:size1], [NSValue valueWithCGSize:size2], [NSValue valueWithCGSize:size3], nil];
      [customFrameAnimation setValues:sizeValues];
      customFrameAnimation.duration=10.0;
      NSArray *times = [NSArray arrayWithObjects:[NSNumber numberWithFloat:0.0f], [NSNumber numberWithFloat:0.5f], [NSNumber numberWithFloat:1.0f], nil]; 
      [customFrameAnimation setKeyTimes:times];
      customFrameAnimation.fillMode = kCAFillModeForwards;
      customFrameAnimation.removedOnCompletion = NO;
      [imageViewForAnimation.layer addAnimation:customFrameAnimation forKey:@"customFrameAnimation"]; 
      [self.view addSubview:imageViewForAnimation]; 
  </code></pre>