jdg / MBProgressHUD

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

setting bezelView backgroundView is not working #474

Closed xuhongfei closed 7 years ago

xuhongfei commented 7 years ago

` MBProgressHUD *hud = [MBProgressHUD showHUDAddedTo:view animated:YES]; hud.mode = MBProgressHUDModeCustomView;

hud.customView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"0"]];

hud.bezelView.backgroundColor = [UIColor blackColor];
hud.bezelView.alpha = .76f;
hud.bezelView.style = MBProgressHUDBackgroundStyleSolidColor;
hud.label.text = text;
hud.label.textColor = UIColorFromRGB(0xffda44);

hud.detailsLabel.text = detailsText;
hud.detailsLabel.textColor = UIColorFromRGB(0xffffff);

hud.removeFromSuperViewOnHide = YES;

[hud hideAnimated:YES afterDelay:afterDelay];`

hud.bezelView background color always is white color.

winterwd commented 7 years ago

try

hud.bezelView.color = [UIColor blackColor];
xuhongfei commented 7 years ago

@winterWD That's right. ths!