Custom color my UIActivityIndicatorView

lavoy picture lavoy · May 10, 2010 · Viewed 25.5k times · Source

I would like to have my UIActivityIndicatorView be colored a custom color. Is there any way to set this property?

Answer

Roland Keesom picture Roland Keesom · Mar 23, 2012

In iOS 5.0 and up you can use setColor: on the UIActivityIndicatorView to set a custom color.

In Swift you can just use activityIndicatorView.color = UIColor.red