jdg / MBProgressHUD

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

Add Alpha for Background View #405

Closed theory closed 8 years ago

theory commented 8 years ago

I'm using the solid color background, but would like to set its alpha level. Currently I can only do that if I call it after calling a show method. Maybe it'd make sense to add an alpha property to MBBackgroundView that defaults to 1.0f and set that value when presenting the HUD?

gauravkeshre commented 8 years ago

You can use UIColor with alpha [UIColor colorWithRed:1.0 green:0.0 blue:0.0 alpha:0.5];

theory commented 8 years ago

Oh, of course, that's even better. I should have thought of that. Thank you!