Created
January 20, 2016 20:42
-
-
Save MaximAlien/c61a33263cf9eb827eec to your computer and use it in GitHub Desktop.
[iOS] Show UIActivityIndicatorView
This file contains hidden or 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
UIActivityIndicatorView *activityIndicatorView = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleGray]; | |
activityIndicatorView.frame = CGRectMake(0.0f, 0.0f, 40.0f, 40.0f); | |
activityIndicatorView.center = self.view.center; | |
[self.view addSubview:activityIndicatorView]; | |
[activityIndicatorView bringSubviewToFront:self.view]; | |
[activityIndicatorView startAnimating]; | |
[UIApplication sharedApplication].networkActivityIndicatorVisible = TRUE; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment