Activity indicator made easy

Talk about making things simple. We’ve all struggled with progress indicators in one form or another, say uploading files to a web page or whatever. There’s usually a lot of code involved. I must say it is getting better.

However, I must also say that Apple’s made it pretty darn easy too, check this out.

1. In your Interface Builder, drag a new UIActivityIndicatorView onto the screen. Let’s call it AboutActivityIndicator.

@property (weak, nonatomic) IBOutlet UIActivityIndicatorView *AboutActivityIndicator;
@synthesize AboutActivityIndicator = _aboutActivityIndicator;

2. Start animation

[_aboutActivityIndicator startAnimating];

3. Stop animation

[_aboutActivityIndicator stopAnimating];

I mean come on, that’s crazy easy.

Leave a comment

1 Comment

  1. Teleporting a Kangaroo « about ss

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: