Instance Method

animationForKey:

Returns the animation with the specified key.

Required.

Declaration

- (CAAnimation *)animationForKey:(NSString *)key;

Parameters

key

A string identifying a previously added animation.

Return Value

An animation object matching the key, or nil if no such animation exists.

Discussion

Attempting to modify any properties of the returned object results in undefined behavior.

See Also

Managing Animations

- addAnimation:forKey:

Adds an animation object for the specified key.

Required.

animationKeys

An array containing the keys of all animations currently attached to the object.

Required.

- removeAllAnimations

Removes all the animations currently attached to the object.

Required.

- removeAnimationForKey:

Removes the animation attached to the object with the specified key.

Required.

- removeAnimationForKey:fadeOutDuration:

Removes the animation attached to the object with the specified key, smoothly transitioning out of the animation’s effect.

Required.

Deprecated