CABasicAnimation获得值为30的步骤

我有一个在CALayer的transform属性上运行的CABasicAnimation。 动画看起来相当酷,并且一切正常,但现在我想知道该层的转换将通过哪些值进行完美的30/60 FPS动画。

我不想运行动画和测量值,我想事先知道。

计算时必须考虑timing功能。

我怎样才能找出这些变换值?

这是动画代码:

CABasicAnimation *animation = [CABasicAnimation animationWithKeyPath: @"transform"];
animation.fromValue = [NSValue valueWithCATransform3D: _myLayer.transform];
animation.toValue   = valueTransform;
animation.duration  = 0.7;
animation.timingFunction = [CAMediaTimingFunction functionWithName: kCAMediaTimingFunctionEaseInEaseOut];
[_myLayer addAnimation: animation forKey:@"transformAnimation"];
链接地址: http://www.djcxy.com/p/74187.html

上一篇: CABasicAnimation get value steps for 30

下一篇: Animate frame property using CABasicAnimation