Class

UIActivityIndicatorView

A view that shows that a task is in progress.

Declaration

@interface UIActivityIndicatorView : UIView

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 YES.

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

Topics

Initializing an Activity Indicator

- initWithActivityIndicatorStyle:

Initializes and returns an activity-indicator object.

Managing an Activity Indicator

- startAnimating

Starts the animation of the progress indicator.

- stopAnimating

Stops the animation of the progress indicator.

animating

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

hidesWhenStopped

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

Configuring the Activity Indicator Appearance

activityIndicatorViewStyle

The basic appearance of the activity indicator.

color

The color of the activity indicator.

Constants

UIActivityIndicatorViewStyle

The visual style of the progress indicator.

Relationships

Inherits From

Conforms To

See Also

Content Views

UIImageView

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

UIPickerView

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

UIProgressView

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

UIWebView

A view that embeds web content in your app.

Deprecated