Closed wujunyang closed 4 years ago
you can set contentColor to resolve
How to set MBProgressHUD IOS 13 Indeterminate backColor
@wtg934614282
(MBProgressHUD )showProgressToView:(UIView )view Text:(NSString )text{ if (view == nil) view = (UIView)[UIApplication sharedApplication].delegate.window; MBProgressHUD *hud = [MBProgressHUD showHUDAddedTo:view animated:YES]; hud.label.text=text; hud.bezelView.style = MBProgressHUDBackgroundStyleSolidColor; hud.bezelView.backgroundColor = [UIColor clearColor]; hud.bezelView.alpha=0.8; hud.label.font=REGULAR_FONT(15);
if (@available(iOS 13.0, )) { for (UIView vyActivityIndicatorView in hud.bezelView.subviews) { if ([vyActivityIndicatorView isKindOfClass:[UIActivityIndicatorView class]]) { ((UIActivityIndicatorView *)vyActivityIndicatorView).color=VY_Color_Green_07DB7F; break; } } } //hud.dimBackground = NO; return hud; }
you can set this : hud.bezelView.style = MBProgressHUDBackgroundStyleSolidColor;
ok,thanks
------------------ Original ------------------ From: NameIsFGJ <notifications@github.com> Date: Fri,Oct 30,2020 5:44 PM To: jdg/MBProgressHUD <MBProgressHUD@noreply.github.com> Cc: wtg934614282 <934614282@qq.com>, Mention <mention@noreply.github.com> Subject: Re: [jdg/MBProgressHUD] MBProgressHUD IOS 13 Indeterminate Color (#595)
you can set this : hud.bezelView.style = MBProgressHUDBackgroundStyleSolidColor;
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.
MBProgressHUD in IOS 13 Changing Indeterminate color has no effect ;It works normally in other system versions
[UIActivityIndicatorView appearanceWhenContainedInInstancesOfClasses:@[[MBProgressHUD class]]].color = [UIColor redColor];