CAAnimation
CAAnimation (super)
1.CAAnimationGroup
2.CAPropertyAnimation
3.CATransitionCAAnimation(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;