阅读背景:

如何让CAKeyframeAnimation在重写另一个状态时接收当前状态?

来源:互联网 

I have one like this:

我有这样一个:

CALayer *layer = stripeButton.layer;
CAKeyframeAnimation *moveAnim = [CAKeyframeAnimation animationWithKeyPath:@"bounds.origin.y"];
moveAnim.duration = 3.35;
moveAnim.repeatCount = 0;
moveAnim.autoreverses = NO;
moveAnim.removedOnCompletion = NO;
moveAnim.calculationMode = kCAAnimationLinear;
moveAnim.fillMode = kCAFillModeForwards;

// ... keys and values here ...

[theLayer addAnimation:moveAnim forKey:@"theAnimation"];
CALayer *laye



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: