设置白色菊花 改变加载圈大小
//设置加载圈
- (void)initMBProgressHUD {
self.hud = [[MBProgressHUD alloc] initWithView:self.view];
_hud.delegate = self;
_hud.mode = MBProgressHUDModeIndeterminate;
_hud.bezelView.style = MBProgressHUDBackgroundStyleSolidColor;
_hud.bezelView.backgroundColor = [UIColor blackColor];
//设置菊花框为白色
[UIActivityIndicatorView appearanceWhenContainedIn:[MBProgressHUD class], nil].color = [UIColor whiteColor];
_hud.square = YES;//等宽高
_hud.margin = 7;//修改该值,可以修改加载框大小
_hud.removeFromSuperViewOnHide = YES;
[_hud showAnimated:YES];
[self.view addSubview:_hud];
}