Skip to content

Instantly share code, notes, and snippets.

@mjjimenez
Created October 18, 2013 06:07
Show Gist options
  • Save mjjimenez/7037148 to your computer and use it in GitHub Desktop.
Save mjjimenez/7037148 to your computer and use it in GitHub Desktop.
Add an activity indicator as a subview
//Create and add the Activity Indicator to splashView
UIActivityIndicatorView *activityIndicator = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhite];
activityIndicator.alpha = 1.0;
activityIndicator.center = CGPointMake(160, 360);
activityIndicator.hidesWhenStopped = NO;
[splashView addSubview:activityIndicator];
[activityIndicator startAnimating];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment