jdg / MBProgressHUD

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

i want translucent bezeView,but the label translucent #376

Closed fanxiangyang closed 8 years ago

matej commented 8 years ago

Huh? ¯(ツ)

fanxiangyang commented 8 years ago

1.my code
MBProgressHUD *hud = [MBProgressHUD showHUDAddedTo:[[UIApplication sharedApplication].windows objectAtIndex:0] animated:YES]; hud.mode = MBProgressHUDModeCustomView; hud.userInteractionEnabled = NO; //i want backgroundView : black=0.5alpha hud.backgroundView.backgroundColor=[UIColor colorWithWhite:0.0 alpha:0.5];
hud.contentColor=[UIColor whiteColor]; //but the bezelView.backgroundColor=0.5alpha i want 1.0alpha hud.bezelView.backgroundColor=[UIColor colorWithRed:0 green:0 blue:0 alpha:1]; hud.detailsLabel.text = @"hello "; hud.removeFromSuperViewOnHide = YES; [hud hideAnimated:YES afterDelay:2];

  1. //i want hud.backgroundView.backgroundColor : black=0.5alpha //but the bezelView.backgroundColor=0.5alpha i want 1.0alpha
matej commented 8 years ago

Set MBProgressHUDBackgroundStyleSolidColor on the bezel if you want a solid opaque color.

fanxiangyang commented 8 years ago

thank you! it good