Skip to content

CCActivityIndicator

Artavazd Barseghyan edited this page May 6, 2013 · 1 revision

Use an activity indicator to show that a task is in progress. An activity indicator appears as a “gear” that is either spinning or stopped.

Properties

//a boolean value that controls whether the receiver is hidden when the animation is stopped
bool hidesWhenStopped;

Instance methods

//when the progress indicator is animated, the gear spins to indicate indeterminate progress
void startAnimating();

//stops the animation of the progress indicator
void stopAnimating();

//returns whether the receiver is animating
bool isAnimating();

Example

CCActivityIndicator * activityIndicator = CCActivityIndicator::create();
this->addChild(activityIndicator);
activityIndicator->startAnimating();