UIView(TKAnimation) Category Reference
Declared in | UIView+TKAnimation.h UIView+TKAnimation.m |
Tasks
-
– addAnimation:
-
– addAnimation:completion:
-
– addAnimation:forKey:
-
– addAnimation:forKey:completion:
-
– addKeyframeAnimationWithKeyPath:duration:delay:bezierPath:options:
-
– addKeyframeAnimationWithKeyPath:duration:delay:bezierPath:options:completion:
-
– addKeyframeAnimationWithKeyPath:duration:delay:path:options:
-
– addKeyframeAnimationWithKeyPath:duration:delay:path:options:completion:
-
– addKeyframeAnimationWithKeyPath:duration:delay:values:options:
-
– addKeyframeAnimationWithKeyPath:duration:delay:values:options:completion:
Instance Methods
addAnimation:
Add an animation to the view.
- (void)addAnimation:(CAAnimation *)animation
Parameters
- animation
The animation object to be added.
Declared In
UIView+TKAnimation.h
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 block called upon completion.
Declared In
UIView+TKAnimation.h
addAnimation:forKey:
Adds an animation object with a completion block.
- (void)addAnimation:(CAAnimation *)animation forKey:(NSString *)key
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.
Declared In
UIView+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 block called upon completion.
Declared In
UIView+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
UIView+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
UIView+TKAnimation.h
addKeyframeAnimationWithKeyPath:duration:delay:path:options:
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
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
UIView+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
UIView+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
UIView+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
UIView+TKAnimation.h