Created
February 20, 2017 17:19
-
-
Save rockarts/17ef4fd98bb1d66553ede42b11238a27 to your computer and use it in GitHub Desktop.
Setup UIActivityLoadingIndicator
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
| func setupLoadingIndicator() { | |
| indicator.color = UIColor .blackColor() | |
| indicator.frame = CGRectMake(0.0, 0.0, 10.0, 10.0) | |
| indicator.center = self.view.center | |
| self.view.addSubview(indicator) | |
| indicator.bringSubviewToFront(self.view) | |
| indicator.startAnimating() | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment