CAAnimation及其子类二

CAAnimation
  • CAAnimation (super)
    1.CAAnimationGroup
    2.CAPropertyAnimation
    3.CATransition

  • CAAnimation(protocol)
    1.CAMediaTiming

CAAnimation 属性
    • (instancetype)animation;
    • (nullable id)defaultValueForKey:(NSString *)key;
    • (BOOL)shouldArchiveValueForKey:(NSString *)key;
  • @property(nullable, strong) CAMediaTimingFunction *timingFunction;
  • @property(nullable, strong) id <CAAnimationDelegate> delegate;
  • @property(getter=isRemovedOnCompletion) BOOL removedOnCompletion;
CAAnimationDelegate
    • (void)animationDidStart:(CAAnimation *)anim;
    • (void)animationDidStop:(CAAnimation *)anim finished:(BOOL)flag;
CAPropertyAnimation
    • (instancetype)animationWithKeyPath:(nullable NSString *)path;
  • @property(nullable, copy) NSString *keyPath;
  • @property(getter=isAdditive) BOOL additive;
  • @property(getter=isCumulative) BOOL cumulative;
  • @property(nullable, strong) CAValueFunction *valueFunction;
CABasicAnimation : CAPropertyAnimation
  • @property(nullable, strong) id fromValue;
  • @property(nullable, strong) id toValue;
  • @property(nullable, strong) id byValue;
CAKeyframeAnimation : CAPropertyAnimation
  • @property(nullable, copy) NSArray *values;
  • @property(nullable) CGPathRef path;
  • @property(nullable, copy) NSArray<NSNumber *> *keyTimes;
  • @property(nullable, copy) NSArray<CAMediaTimingFunction *> *timingFunctions;
  • @property(copy) NSString *calculationMode;
  • @property(nullable, copy) NSArray<NSNumber *> *tensionValues;
  • @property(nullable, copy) NSArray<NSNumber *> *continuityValues;
  • @property(nullable, copy) NSArray<NSNumber *> *biasValues;
  • @property(nullable, copy) NSString *rotationMode;
CASpringAnimation : CABasicAnimation
  • @property CGFloat mass;
  • @property CGFloat stiffness;
  • @property CGFloat damping;
  • @property CGFloat initialVelocity;
  • @property(readonly) CFTimeInterval settlingDuration;
CATransition : CAAnimation
  • @property(copy) NSString *type;
  • @property(nullable, copy) NSString *subtype;
  • @property float startProgress;
  • @property float endProgress;
  • @property(nullable, strong) id filter;
CAAnimationGroup : CAAnimation
  • @property(nullable, copy) NSArray<CAAnimation *> *animations;
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容