Declared in CALayer+TKAnimation.h
CALayer+TKAnimation.m

Overview

Additional animation functionality for CALayer.

Instance Methods

addAnimation:completion:

Adds an animation object with a completion block.

- (void)addAnimation:(CAAnimation *)animation completion:(void ( ^ ) ( BOOL ))completion

Parameters

animation

The animation object to be added.

completion

The completion block.

Declared In

CALayer+TKAnimation.h

addAnimation:forKey:completion:

Adds an animation object with a completion block for the specified key.

- (void)addAnimation:(CAAnimation *)animation forKey:(NSString *)key completion:(void ( ^ ) ( BOOL ))completion

Parameters

animation

The animation object to be added.

key

An string identifying the animation for later retrieval. You may pass nil if you don’t need to reference the animation later.

completion

The completion block.

Declared In

CALayer+TKAnimation.h

addKeyframeAnimationWithKeyPath:duration:delay:bezierPath:options:

Adds a keyframe animation object with a completion block for the specified key.

- (void)addKeyframeAnimationWithKeyPath:(NSString *)keyPath duration:(CFTimeInterval)duration delay:(CFTimeInterval)delay bezierPath:(UIBezierPath *)bezierPath options:(UIViewAnimationOptions)options

Parameters

keyPath

The key path of the property to be animated.

duration

The duration of the animation.

delay

The delay of the animation.

bezierPath

The path for a point-based property to follow.

options

Set the animaiton curve of the animation.

Declared In

CALayer+TKAnimation.h

addKeyframeAnimationWithKeyPath:duration:delay:bezierPath:options:completion:

Adds a keyframe animation object with a completion block for the specified key.

- (void)addKeyframeAnimationWithKeyPath:(NSString *)keyPath duration:(CFTimeInterval)duration delay:(CFTimeInterval)delay bezierPath:(UIBezierPath *)bezierPath options:(UIViewAnimationOptions)options completion:(void ( ^ ) ( BOOL ))completion

Parameters

keyPath

The key path of the property to be animated.

duration

The duration of the animation.

delay

The delay of the animation.

bezierPath

The path for a point-based property to follow.

options

Set the animaiton curve of the animation.

completion

The completion block.

Declared In

CALayer+TKAnimation.h

addKeyframeAnimationWithKeyPath:duration:delay:path:options:

Adds a keyframe animation object with a completion block.

- (void)addKeyframeAnimationWithKeyPath:(NSString *)keyPath duration:(CFTimeInterval)duration delay:(CFTimeInterval)delay path:(CGPathRef)path options:(UIViewAnimationOptions)options

Parameters

keyPath

The key path of the property to be animated.

duration

The duration of the animation.

delay

The delay of the animation.

path

The path for a point-based property to follow.

options

Set the animaiton curve of the animation.

Declared In

CALayer+TKAnimation.h

addKeyframeAnimationWithKeyPath:duration:delay:path:options:completion:

Adds a keyframe animation object with a completion block for the specified key.

- (void)addKeyframeAnimationWithKeyPath:(NSString *)keyPath duration:(CFTimeInterval)duration delay:(CFTimeInterval)delay path:(CGPathRef)path options:(UIViewAnimationOptions)options completion:(void ( ^ ) ( BOOL ))completion

Parameters

keyPath

The key path of the property to be animated.

duration

The duration of the animation.

delay

The delay of the animation.

path

The path for a point-based property to follow.

options

Set the animaiton curve of the animation.

completion

The completion block.

Declared In

CALayer+TKAnimation.h

addKeyframeAnimationWithKeyPath:duration:delay:values:options:

Adds a keyframe animation object with a completion block for the specified key.

- (void)addKeyframeAnimationWithKeyPath:(NSString *)keyPath duration:(CFTimeInterval)duration delay:(CFTimeInterval)delay values:(NSArray *)values options:(UIViewAnimationOptions)options

Parameters

keyPath

The key path of the property to be animated.

duration

The duration of the animation.

delay

The delay of the animation.

values

An array of objects that specify the keyframe values to use for the animation.

options

Set the animaiton curve of the animation.

Declared In

CALayer+TKAnimation.h

addKeyframeAnimationWithKeyPath:duration:delay:values:options:completion:

Adds a keyframe animation object with a completion block for the specified key.

- (void)addKeyframeAnimationWithKeyPath:(NSString *)keyPath duration:(CFTimeInterval)duration delay:(CFTimeInterval)delay values:(NSArray *)values options:(UIViewAnimationOptions)options completion:(void ( ^ ) ( BOOL ))completion

Parameters

keyPath

The key path of the property to be animated.

duration

The duration of the animation.

delay

The delay of the animation.

values

An array of objects that specify the keyframe values to use for the animation.

options

Set the animaiton curve of the animation.

completion

The completion block.

Declared In

CALayer+TKAnimation.h