摘要: CAEmitterLayeremitterCells:CAEmitterCell对象的数组,被用于把粒子投放到layer上birthRate:可以通俗的理解为发射源的个数,默认1.0。当前每秒产生的真实粒子数为=CAEmitterLayer的birthRate*子粒子的birthRate;lifet... 阅读全文
posted @ 2015-05-01 14:48 童话DY 阅读(517) 评论(0) 推荐(0) 编辑
摘要: 使用CAAnimationGroup类进行复数动画的组合。代码如下:/* 动画1(在X轴方向移动) */CABasicAnimation *animation1 = [CABasicAnimation animationWithKeyPath:@"transform.translation.x"];... 阅读全文
posted @ 2015-05-01 11:34 童话DY 阅读(686) 评论(0) 推荐(0) 编辑
摘要: keyPath分为:transform.scale transform.scale.x transform.scale.y transform.scale.z CABasicAnimation* scale = [CABasicAnimation animationWithKeyPath:@"tr... 阅读全文
posted @ 2015-05-01 11:20 童话DY 阅读(496) 评论(0) 推荐(0) 编辑
摘要: x轴旋转:CABasicAnimation *theAnimation;theAnimation=[CABasicAnimation animationWithKeyPath:@"transform.rotation.x"];theAnimation.duration=1;theAnimation.... 阅读全文
posted @ 2015-05-01 11:07 童话DY 阅读(485) 评论(0) 推荐(0) 编辑