CAAnimationGroup *hybridlayerGroup = [CAAnimationGroup
animation];
hybridlayerGroup.duration = 4.0f;
hybridlayerGroup.removedOnCompletion = NO;
hybridlayerGroup.fillMode = kCAFillModeForwards;
hybridlayerGroup.autoreverses = YES;
hybridlayerGroup.animations = @[leftopactiyAnimation,leftboundsanimation];
[leftshapeLayer addAnimation:hybridlayerGroup forKey:nil];
你可以通过设置CAAnimationGroup 的tempoh:
timingFunction
属性 或者增加CAAnimationGroup
的timingFunction
属性 或者增加duration
:or
🎜atau🎜 rrreee 🎜UIView animation...