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