Created
October 18, 2013 06:07
-
-
Save mjjimenez/7037148 to your computer and use it in GitHub Desktop.
Add an activity indicator as a subview
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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