博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
CAAnimation 动画支撑系统
阅读量:7250 次
发布时间:2019-06-29

本文共 1014 字,大约阅读时间需要 3 分钟。

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;

转载地址:http://agqbm.baihongyu.com/

你可能感兴趣的文章
rsync同步的实现及其简单源码包的编译安装
查看>>
AGG第三十八课 一些不常用的坐标转换管道
查看>>
实战案例:创建支持SSH服务的镜像
查看>>
Fiddler Web Debugger简单调试头部参数
查看>>
Linux环境下发布项目(Tomcat重新启动)
查看>>
centos7配置svn服务器
查看>>
亮剑:PHP,我的未来不是梦(13)
查看>>
MYSQL主从数据同步
查看>>
javascript数组操作
查看>>
linux中父进程退出时如何通知子进程
查看>>
linux 缩减文件系统大小 LVM
查看>>
对比文件md5值实现去重文件
查看>>
C#设计模式之二十三解释器模式(Interpreter Pattern)【行为型】
查看>>
js处理中文乱码记录/nodejs+express error 413
查看>>
基于Keepalived实现LVS双主高可用集群
查看>>
SqlServer 使用脚本创建分发服务及事务复制的可更新订阅
查看>>
什么是Floating (浮动)规则?
查看>>
分布式文件系统-FastDFS
查看>>
HTML5 rotate 做仪表盘
查看>>
为什么说荆州松滋刘氏采穴堂是刘开七、刘广传的后裔
查看>>