title: How to use UIBezierPath with CoreAnimation?
body: <p>I am using this code to remove animate my UIView to the delete button on delete button press.
  Here's the code : </p>
  
  <pre><code>UIBezierPath *movePath = [UIBezierPath bezierPath];
              [movePath moveToPoint:icon.center];
              [movePath addQuadCurveToPoint:senderView.center
                               controlPoint:CGPointMake(senderView.center.x, icon.center.y)];
  
              CAKeyframeAnimation *moveAnim = [CAKeyframeAnimation animationWithKeyPath:@"position"];
              moveAnim.path = movePath.CGPath;
              moveAnim.removedOnCompletion = YES;
  
              CABasicAnimation *scaleAnim = [CABasicAnimation animationWithKeyPath:@"transform"];
              scaleAnim.fromValue = [NSValue valueWithCATransform3D:CATransform3DIdentity];
              scaleAnim.toValue = [NSValue valueWithCATransform3D:CATransform3DMakeScale(0.1, 0.1, 1.0)];
              scaleAnim.removedOnCompletion = YES;
  
              CABasicAnimation *opacityAnim = [CABasicAnimation animationWithKeyPath:@"alpha"];
              opacityAnim.fromValue = [NSNumber numberWithFloat:1.0];
              opacityAnim.toValue = [NSNumber numberWithFloat:0.1];
              opacityAnim.removedOnCompletion = YES;
  
              CAAnimationGroup *animGroup = [CAAnimationGroup animation];
              animGroup.animations = [NSArray arrayWithObjects:moveAnim, scaleAnim, opacityAnim, nil];
              animGroup.duration = 2.0;
              [icon.layer addAnimation:animGroup forKey:nil];
  </code></pre>
  
  <p>And this actually animating the UIView to the delete button but after it's showing up in the same place again.</p>