简体   繁体   中英

how to change color of activity indicator in iOS

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.

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.

您无法更改默认活动指示器的颜色。

只是fyi,另一种做进展的方法查看http://github.com/jdg/MBProgressHUD

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM