3

I want to change the color of the activity Indicator in iOS. However, I do not want to create a custom indicator. There is a color property for the activity Indicator but it's not showing up in xcode. Please advice.

Namratha
  • 16,630
  • 27
  • 90
  • 125

3 Answers3

10

From the docs:

color
The color of the activity indicator.

If you set a color for an activity indicator, it overrides the color provided by the activityIndicatorViewStyle property.

Notice that it is iOS 5.0 and later only.

phi
  • 10,634
  • 6
  • 53
  • 88
0

You cannot change the default activity indicator's color.

Anthony
  • 12,177
  • 9
  • 69
  • 105
Saurabh Passolia
  • 8,099
  • 1
  • 26
  • 41
  • You can... but you really shouldn't. The only way you can is to access a view down in UIActivityIndicators view heiarchy and Apple Will not let your app in if it does that. Id recommend creating your own view that does the same thing and you can make it look like whatever you want. – Aron Oct 17 '11 at 11:53
0

just fyi, another way to do progress view http://github.com/jdg/MBProgressHUD

Zitao Xiong
  • 956
  • 1
  • 10
  • 18