jdg / MBProgressHUD

MBProgressHUD + Customizations
http://www.bukovinski.com/
MIT License
16.01k stars 3.56k forks source link

activityIndicatorColor shouldn't be deprecated #409

Open spybart opened 8 years ago

spybart commented 8 years ago

I just want to express my opinion that by deprecating this property and forcing user to customize UIActivityIndicator color through UIAppearance, you are taking away flexibility from the user.

Setting color through UIAppearance basically means you are limited to the same color throughout the entire app, which may not be desirable. It is nice to be able to set the color for a specific indicator, based on the colors of the page it is being shown in.

jjxtra commented 8 years ago

Try setting content color property on the hud

spybart commented 8 years ago

@jjxtra That is not the same thing. There are definitely certain colors for the hud or background where it would be favorable to customize the activity indicator color as well.

CaiChenghan commented 5 years ago

@spybart First,you should set UIActivityIndicatorView's indicatorColor like this

[UIActivityIndicatorView appearanceWhenContainedInInstancesOfClasses:@[[MBProgressHUD class]]].color = [UIColor whiteColor];

Then,start use the MBProgressHUD

 MBProgressHUD *hud = [MBProgressHUD showHUDAddedTo:view animated:YES];

It's work in target Class, not all Class

spybart commented 5 years ago

@spybart First,you should set UIActivityIndicatorView's indicatorColor like this

[UIActivityIndicatorView appearanceWhenContainedInInstancesOfClasses:@[[MBProgressHUD class]]].color = [UIColor whiteColor];

Then,start use the MBProgressHUD

 MBProgressHUD *hud = [MBProgressHUD showHUDAddedTo:view animated:YES];

It's work in target Class, not all Class

That still isn't a solution. It could be desirable to have multiple indicator colors inside the same class.