Model支撑:(依附对象)

从presentLayer获取数据;

渲染树为私有;

-(void)addAnimation:(CAAnimation *)anim forKey:(NSString *)key

key:动画帧的关联要素;

timingFunction:控制动画运行的节奏;

duration:动画的持续时间;

delegate:动画代理,用来监听动画的执行过程;

主要用于自定义动画;

CAMediaTiming:动画的暂停、继续控制

@interface CALayer : NSObject <NSCoding, CAMediaTiming>

@protocol CAMediaTiming

/* The begin time of the object, in relation to its parent object, if

* applicable. Defaults to 0. */

@property CFTimeInterval beginTime;

/* The basic duration of the object. Defaults to 0. */

@property CFTimeInterval duration;

/* The rate of the layer. Used to scale parent time to local time, e.g.

* if rate is 2, local time progresses twice as fast as parent time.

* Defaults to 1. */

@property float speed;

/* Additional offset in active local time. i.e. to convert from parent

* time tp to active local time t: t = (tp - begin) * speed + offset.

* One use of this is to "pause" a layer by setting `speed' to zero and

* `offset' to a suitable value. Defaults to 0. */

@property CFTimeInterval timeOffset;

最新文章

  1. EntityFramework的多种记录日志方式,记录错误并分析执行时间过长原因(系列4)
  2. haxe jni调用输入法
  3. C#学习感悟
  4. Ubuntu下两个gcc版本切换
  5. du -sg 和df -g 所看的文件系统大小不一致
  6. Javascript基础系列之(三)数据类型 (类型转化)
  7. 构造器Constructor是否可被override?
  8. ScrollVIew 边界阴影效果
  9. delphi调用 java 的 WebService服务端.
  10. Android实现多次闪退清除数据
  11. javaweb添加拦截器
  12. Python尾递归-创始人为何不愿TRE以及我们如何模拟TRE
  13. ISLR系列:(1)线性回归 Linear Regression
  14. python ssh登录linux 上传和下载文件
  15. 教程:在 Visual Studio 中开始使用 Flask Web 框架
  16. centos7部署fabric-ca错误解决
  17. [转]web.xml中&lt;url-pattern&gt;详解
  18. MongoDB 之 &quot;$&quot; 的奇妙用法 MongoDB - 5
  19. Android http通信案例
  20. Confluence 6 更新目录

热门文章

  1. 架构实战项目心得(四)(补):Maven settings.xml的所有标签详解
  2. [Hadoop大数据]--kafka入门
  3. 分布式事务-Sharding 数据库分库分表
  4. .NET 中使用阿里云短信的 API 接口
  5. 分布式事务概述--2pc的概念
  6. JDK自带工具keytool生成ssl证书 和 HTTPS双向认证
  7. 洛谷P3960 列队(动态开节点线段树)
  8. 日常捕获的野生知识 - javascript 与 类
  9. UNIX/Linux系统管理技术手册(3)----bash 数组和算术运算
  10. ArcGIS中国工具(ArcGISCTools)2.0在线视频