美文网首页
动画接口类

动画接口类

作者: 优酷巧克力 | 来源:发表于2017-09-10 11:05 被阅读0次

一、案例:https://github.com/sindrilin/Animations
二、国外:https://github.com/tapharmonic(出自:http://www.bobmccune.com/
三、书上的案例:https://zsisme.gitbooks.io/ios-/content/chapter14/loading-and-latency.html
----------------分割线--------------

一、.继承关系:[CAKeyFrameAnimation|CABasicAnimation]:CAPropertyAnimation:CAAnimation;
2.CAKeyFrameAnimation paths和Values是不会同时生效的;
【详细看树叶下落的例子】
3.专场动画CATransition
4.组动画:CAAnimationGroup
[animationGroup setAnimations:@[rotationAnimation, scaleAnimation]];

5.2rotationAnimation.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut];

二、回调:CAAnimationDelegate

  • (void)animationDidStart:(CAAnimation *)anim;
  • (void)animationDidStop:(CAAnimation *)anim finished:(BOOL)flag;

三、CATransaction
startProgress?

四、弹簧
CASpringAnimation(详解:http://www.jianshu.com/p/90a7a1787d1b

相关文章

网友评论

      本文标题:动画接口类

      本文链接:https://www.haomeiwen.com/subject/aenajxtx.html