startAnimatingWithImages(in:duration:repeatCount:)
Animates the specified images with the given duration and repeat information.
Declaration
func startAnimatingWithImages(in imageRange: NSRange, duration: TimeInterval, repeatCount: Int)Parameters
- imageRange:
The range of images to be animated. The value
0indicates the first image in the sequence, the value1the second image, and so on. - duration:
The time (in seconds) over which to animate a single loop of the images. Positive values cause the animation to start at the first frame in the sequence and end on the last frame. Negative values causes the animation to play in reverse order and end on the first frame in the sequence.
- repeatCount:
The number of times to repeat the animation loop. Specify
0to animate the images indefinitely.
Discussion
This method animates a subset of the images associated with the current image interface object. This method starts the animation from the first image in the specified range.