Skip to content

Instantly share code, notes, and snippets.

@rockarts
Created February 20, 2017 17:19
Show Gist options
  • Select an option

  • Save rockarts/17ef4fd98bb1d66553ede42b11238a27 to your computer and use it in GitHub Desktop.

Select an option

Save rockarts/17ef4fd98bb1d66553ede42b11238a27 to your computer and use it in GitHub Desktop.
Setup UIActivityLoadingIndicator
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