jdg / MBProgressHUD

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

how to change the background color #381

Closed abhi2412shek closed 8 years ago

yas375 commented 8 years ago

Probably would be more appropriate to ask such questions at StackOverflow and to open an issue when you are reporting an issue. issue != help request

See https://github.com/jdg/MBProgressHUD/blob/f3732cc1058da7d9e9856a27c5e476f34fb28673/MBProgressHUD.h#L267 and https://github.com/jdg/MBProgressHUD/blob/f3732cc1058da7d9e9856a27c5e476f34fb28673/MBProgressHUD.h#L368-L383

hud.backgroundView.color = UIColor.orangeColor()
markltownsend commented 8 years ago

Not technically a bug, but would be nice to be able to set the background color for all MBProgressHUDs rather than setting it for each instance created at creation time. For instance, implement the UIAppearance Protocol.