Class

UIActivityIndicatorView

A view that shows that a task is in progress.

Overview

You control when an activity indicator animates by calling the startAnimating() and stopAnimating() methods. To automatically hide the activity indicator when animation stops, set the hidesWhenStopped property to true.

You can set the color of the activity indicator by using the color property.

Topics

Initializing an Activity Indicator

Managing an Activity Indicator

func startAnimating()

Starts the animation of the progress indicator.

func stopAnimating()

Stops the animation of the progress indicator.

var isAnimating: Bool

A Boolean value indicating whether the activity indicator is currently running its animation.

var hidesWhenStopped: Bool

A Boolean value that controls whether the receiver is hidden when the animation is stopped.

Configuring the Activity Indicator Appearance

var activityIndicatorViewStyle: UIActivityIndicatorViewStyle

The basic appearance of the activity indicator.

var color: UIColor?

The color of the activity indicator.

Constants

enum UIActivityIndicatorViewStyle

The visual style of the progress indicator.

See Also

Content Views

class UIImageView

An object that displays a single image or a sequence of animated images in your interface.

class UIPickerView

A view that uses a spinning-wheel or slot-machine metaphor to show one or more sets of values.

class UIProgressView

A view that depicts the progress of a task over time.

class UIWebView

A view that embeds web content in your app.