摘要:
1.简单介绍 CALayer有2个非常重要的属性:position和anchorPoint @property CGPoint position; 用来设置CALayer在父层中的位置,以父层的左上角为原点(0, 0) @property CGPoint anchorPoint; 称为"定位点"、" 阅读全文
posted @ 2016-02-18 19:25
多两口
阅读(289)
评论(0)
推荐(0)
摘要:
关键属性: type 过渡效果 kCATransitionFade 淡出 kCATransitionMoveIn 覆盖原图 kCATransitionPush 推出 kCATransitionReveal 底部显出来 subtype 过渡方向 kCATransitionFromRight; kCAT 阅读全文
posted @ 2016-02-18 15:34
多两口
阅读(240)
评论(0)
推荐(0)
摘要:
动画组顾名思义就是将多个不同的动画效果组合起来同时作用于一个层上 代码演示: 1 // 创建基本路径 2 CGMutablePathRef path = CGPathCreateMutable(); 3 4 // 设置路径的起点 5 CGPathMoveToPoint(path, NULL, 50. 阅读全文
posted @ 2016-02-18 15:32
多两口
阅读(986)
评论(0)
推荐(0)
摘要:
是CApropertyAnimation的子类,跟CABasicAnimation的区别是:CABasicAnimation只能从一个数值(fromValue)变到另一个数值(toValue),而CAKeyframeAnimation会使用一个NSArray保存这些数值,就可以实现CALayer的某 阅读全文
posted @ 2016-02-18 15:29
多两口
阅读(639)
评论(0)
推荐(0)

浙公网安备 33010602011771号