Creates and returns an animated image with end caps and a specific resizing mode.
- iOS 6.0+
- tvOS 9.0+
- watchOS 2.0+
The full or partial path to the file (sans suffix).
The values to use for the cap insets.
The mode with which the interior of the image is resized.
The duration of the animation.
A new animated image object with the specified cap insets and resizing mode.
This method is exactly the same as its counterpart
animated except that the resizing mode of the new image object can be explicitly declared. Since the resizing mode of an image is
UIImage by default, this method should only be used in place of its counterpart to create an animated image that needs to be resized with the
UIImage resizing mode.