Declared in CAKeyframeAnimation+TKAnimation.h
CAKeyframeAnimation+TKAnimation.m

Overview

Additional functionality for CAKeyframeAnimation.

Class Methods

keyframeAnimationWithKeyPath:duration:delay:bezierPath:options:

Create a CAKeyframeAnimation animation with the given path.

+ (CAKeyframeAnimation *)keyframeAnimationWithKeyPath:(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

CAKeyframeAnimation+TKAnimation.h

keyframeAnimationWithKeyPath:duration:delay:bezierPath:options:completion:

Create a CAKeyframeAnimation animation with the given path.

+ (CAKeyframeAnimation *)keyframeAnimationWithKeyPath:(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

CAKeyframeAnimation+TKAnimation.h

keyframeAnimationWithKeyPath:duration:delay:options:

Create a CAKeyframeAnimation animation with the given path.

+ (CAKeyframeAnimation *)keyframeAnimationWithKeyPath:(NSString *)keyPath duration:(CFTimeInterval)duration delay:(CFTimeInterval)delay 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.

options

Set the animaiton curve of the animation.

Declared In

CAKeyframeAnimation+TKAnimation.h

keyframeAnimationWithKeyPath:duration:delay:options:completion:

Create a CAKeyframeAnimation animation with the given path.

+ (CAKeyframeAnimation *)keyframeAnimationWithKeyPath:(NSString *)keyPath duration:(CFTimeInterval)duration delay:(CFTimeInterval)delay 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.

options

Set the animaiton curve of the animation.

completion

The completion block.

Declared In

CAKeyframeAnimation+TKAnimation.h

keyframeAnimationWithKeyPath:duration:delay:path:options:

Create a CAKeyframeAnimation animation with the given path.

+ (CAKeyframeAnimation *)keyframeAnimationWithKeyPath:(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

CAKeyframeAnimation+TKAnimation.h

keyframeAnimationWithKeyPath:duration:delay:path:options:completion:

Create a CAKeyframeAnimation animation with the given path.

+ (CAKeyframeAnimation *)keyframeAnimationWithKeyPath:(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

CAKeyframeAnimation+TKAnimation.h

keyframeAnimationWithKeyPath:duration:delay:values:options:

Create a CAKeyframeAnimation animation with the given path.

+ (CAKeyframeAnimation *)keyframeAnimationWithKeyPath:(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

CAKeyframeAnimation+TKAnimation.h

keyframeAnimationWithKeyPath:duration:delay:values:options:completion:

Create a CAKeyframeAnimation animation with the given path.

+ (CAKeyframeAnimation *)keyframeAnimationWithKeyPath:(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

CAKeyframeAnimation+TKAnimation.h