使用CAKeyframeAnimation添加在当前VC的一个ImageView上,push一个新的VC之后,pop返回时动画停止了,repeatCount设置为CGFLOAT_MAX,有什么办法可以让动画不停止吗?
CAKeyframeAnimation *cka = [CAKeyframeAnimationanimationWithKeyPath:@"transform.scale"];
cka.values = @[@0.7, @1.5, @1, @1];
cka.keyTimes = @[@0.0, @0.3, @0.3, @1];
cka.repeatCount = CGFLOAT_MAX;
cka.duration = 1.8;
[_pointView.layer addAnimation:cka forKey:@"cka"];
으아아아removedOnCompletion
속성을 NO로 설정하면 애니메이션을 멈추지 않고 VC가 전환되도록 할 수 있습니다.