Type Method

animatedImageWithImages:duration:

Creates and returns an animated image from an existing set of images.

Declaration

+ (UIImage *)animatedImageWithImages:(NSArray<UIImage *> *)images duration:(NSTimeInterval)duration;

Parameters

images

An array of UIImage objects.

duration

The duration of the animation.

Return Value

A new image object.

Discussion

All images included in the animated image should share the same size and scale.

See Also

Creating Animated Images

+ animatedImageNamed:duration:

Creates and returns an animated image.

+ animatedResizableImageNamed:capInsets:duration:

Creates and returns an animated image with end caps.

+ animatedResizableImageNamed:capInsets:resizingMode:duration:

Creates and returns an animated image with end caps and a specific resizing mode.