Drag onto window and place as requried

Select and turn on ‘Hide When Stopped’ from it’s properties.

Declare in #ViewController.h

	IBOutlet UIActivityIndicatorView *activityIndicator;
In #ViewController.m

//If view could be unloaded
//********** VIEW DID UNLOAD **********
- (void)viewDidUnload
{
	[super viewDidUnload];

	[activityIndicator release];
	activityIndicator = nil;
}

//********** DEALLOC **********
- (void)dealloc
{
	[activityIndicator release];

	[super dealloc];
}


To turn on and off

	[activityIndicator startAnimating];

	[activityIndicator stopAnimating];

Comments