title: Objective-C - CABasicAnimation applying changes after animation?
body: <p>I am using <code>CABasicAnimation</code> to move and resize an image view. I want the image view to be added to the superview, animate, and then be removed from the superview.</p>
  
  <p>In order to achieve that I am listening for delegate call of my <code>CAAnimationGroup</code>, and as soon as it gets called I remove the image view from the superview.</p>
  
  <p>The problem is that sometimes the image blinks in the initial location before being removed from the superview. What's the best way to avoid this behavior?</p>
  
  <pre><code>CAAnimationGroup *animGroup = [CAAnimationGroup animation];
      animGroup.animations = [NSArray arrayWithObjects:moveAnim, scaleAnim, opacityAnim, nil];
      animGroup.duration = .5;
      animGroup.delegate = self;
      [imageView.layer addAnimation:animGroup forKey:nil];
  </code></pre>