As per the documentation for removeAllAnimations
:
Remove all animations attached to the receiver.
You'll need to iterate through the sublayers and remove animations from them as well:
for (CALayer* layer in [containerLayer sublayers]) {
[layer removeAllAnimations];
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…