[英]how to change color of activity indicator in iOS
I want to change the color of the activity Indicator in iOS. 我想改变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. 活动指标有一个颜色属性,但它没有显示在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. 如果为活动指示器设置颜色,它将覆盖activityIndicatorViewStyle属性提供的颜色。
Notice that it is iOS 5.0 and later only. 请注意,它仅适用于iOS 5.0及更高版本 。
您无法更改默认活动指示器的颜色。
只是fyi,另一种做进展的方法查看http://github.com/jdg/MBProgressHUD
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.