You need a UIActivityIndicatorView
UIActivityIndicatorView *spinner = [[UIActivityIndicatorView alloc]initWithFrame:CGRectMake(135,140,50,50)];
[spinner startAnimating];
[self.view addSubview:spinner];
[spinner release];
You might want to keep a pointer to it, although you can delete it later.
source
share