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;
最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容