CAAnimation 动画支撑系统
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;
最新文章
- EntityFramework的多种记录日志方式,记录错误并分析执行时间过长原因(系列4)
- haxe jni调用输入法
- C#学习感悟
- Ubuntu下两个gcc版本切换
- du -sg 和df -g 所看的文件系统大小不一致
- Javascript基础系列之(三)数据类型 (类型转化)
- 构造器Constructor是否可被override?
- ScrollVIew 边界阴影效果
- delphi调用 java 的 WebService服务端.
- Android实现多次闪退清除数据
- javaweb添加拦截器
- Python尾递归-创始人为何不愿TRE以及我们如何模拟TRE
- ISLR系列:(1)线性回归 Linear Regression
- python ssh登录linux 上传和下载文件
- 教程:在 Visual Studio 中开始使用 Flask Web 框架
- centos7部署fabric-ca错误解决
- [转]web.xml中<;url-pattern>;详解
- MongoDB 之 ";$"; 的奇妙用法 MongoDB - 5
- Android http通信案例
- Confluence 6 更新目录
热门文章
- 架构实战项目心得(四)(补):Maven settings.xml的所有标签详解
- [Hadoop大数据]--kafka入门
- 分布式事务-Sharding 数据库分库分表
- .NET 中使用阿里云短信的 API 接口
- 分布式事务概述--2pc的概念
- JDK自带工具keytool生成ssl证书 和 HTTPS双向认证
- 洛谷P3960 列队(动态开节点线段树)
- 日常捕获的野生知识 - javascript 与 类
- UNIX/Linux系统管理技术手册(3)----bash 数组和算术运算
- ArcGIS中国工具(ArcGISCTools)2.0在线视频