-
Notifications
You must be signed in to change notification settings - Fork 59
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.
//a boolean value that controls whether the receiver is hidden when the animation is stopped
bool hidesWhenStopped;
//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();
CCActivityIndicator * activityIndicator = CCActivityIndicator::create();
this->addChild(activityIndicator);
activityIndicator->startAnimating();