Inherits from UIImageView
Declared in TKAnimatedImageView.h
TKAnimatedImageView.m

Overview

TKAnimatedImageView is a reimplementation of UIImageView animated images with better access to the current frame in the animation sequence.

Properties

animating

The current frame index.

@property (nonatomic, readonly) BOOL animating

Declared In

TKAnimatedImageView.h

currentFrame

The current frame index.

@property (nonatomic, readonly) NSInteger currentFrame

Declared In

TKAnimatedImageView.h

currentImage

Returns the image of the current frame being displayed

@property (nonatomic, readonly) UIImage *currentImage

Declared In

TKAnimatedImageView.h

Instance Methods

playAnimationWithImages:duration:repeatCount:withCompletionBlock:

Play an animation sequence with the given image frames.

- (void)playAnimationWithImages:(NSArray *)images duration:(NSTimeInterval)duration repeatCount:(NSUInteger)repeatCount withCompletionBlock:(void ( ^ ) ( BOOL finished ))completion

Parameters

images

A array of UIImage objects.

duration

The duration of the animation.

repeatCount

The number of times the animation sequence plays.

completion

The completion block called upon the animation completing.

Declared In

TKAnimatedImageView.h

playAnimationWithImages:duration:withCompletionBlock:

Play an animation sequence with the given image frames.

- (void)playAnimationWithImages:(NSArray *)images duration:(NSTimeInterval)duration withCompletionBlock:(void ( ^ ) ( BOOL finished ))completion

Parameters

images

A array of UIImage objects.

duration

The duration of the animation.

completion

The completion block called upon the animation completing.

Declared In

TKAnimatedImageView.h

stopAnimating

Stop animating.

- (void)stopAnimating

Declared In

TKAnimatedImageView.h