Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to change an UIActivityIndicatorView color to black in iOS?

I want to change an activity indicator color gray/white to black. Is it possible to change the color to black? If yes, please guide me or give some sample code.

like image 404
Pugalmuni Avatar asked Jun 08 '10 14:06

Pugalmuni


1 Answers

You can use the .color property in order to change the UIActivityIndicatorView color, e.g.:

// Objective-C activityIndicator.color = [UIColor greenColor];  // Swift activityIndicator.color = .green 

Note that .color is only available from iOS 5.

like image 143
Cesar Avatar answered Oct 25 '22 14:10

Cesar