richard Stephenson
richard Stephenson

Reputation: 507

adding a little swirl icon when loading

im sure this is completely simple , infact i'm sure i have already seen the code for this somewhere , i just cant remember for the life of me where.

all i want to do is add the little swirl image thing whilst loading. can anyone point me in the right direction

Thanks Richard

Upvotes: 3

Views: 1324

Answers (2)

Joe Cannatti
Joe Cannatti

Reputation: 5079

You want a UIActivityIndicatorView

UIActivityIndicatorView *spinner = [[UIActivityIndicatorView alloc]initWithFrame:CGRectMake(135,140,50,50)];
[spinner startAnimating];
[self.view addSubview:spinner];
[spinner release];

You will probably want to hold on to a pointer to it though so you can remove it later.

Upvotes: 6

Vladimir
Vladimir

Reputation: 170839

You must be looking for standard UIActivityIndicatorView control.

Upvotes: 1

Related Questions