CAKeyframeAnimation

2016-07-28  本文已影响130人  音吹

动画分类:

        The appropriate values in the keyTimes array are dependent on the calculationMode property.
        
        If the calculationMode is set to kCAAnimationLinear, the first value in the array must be 0.0 and the last value must be 1.0. Values are interpolated between the specified key times.
        
        If the calculationMode is set to kCAAnimationDiscrete, the first value in the array must be 0.0.
        
        If the calculationMode is set to kCAAnimationPaced or kCAAnimationCubicPaced, the keyTimes array is ignored。
        CA_EXTERN NSString * const kCAAnimationLinear;

        CA_EXTERN NSString * const kCAAnimationDiscrete;//只展示关键帧的状态,没有中间过程,没有动画

        CA_EXTERN NSString * const kCAAnimationPaced;//向被驱动的对象施加一个恒定速度,不管路径的各个线段有多长
        
        CA_EXTERN NSString * const kCAAnimationCubic;
        
        CA_EXTERN NSString * const kCAAnimationCubicPaced;
上一篇下一篇

猜你喜欢

热点阅读