Closed moyitpro closed 4 years ago
Can you provide reproduction steps for this in the demo project that's part of this repository? I can't reproduce this.
I can't produce it in the demo app. However, in my app with the updated MBProgressHud, it does not appear properly.
The code is similar to the demo, not sure what I am doing wrong.
if (show && !_refreshing) {
_hud = [MBProgressHUD showHUDAddedTo:self.view animated:YES];
_hud.label.text = @"Loading";
if (@available(iOS 13, *)) { }
else {
_hud.bezelView.blurEffectStyle = [NSUserDefaults.standardUserDefaults boolForKey:@"darkmode"] ? UIBlurEffectStyleDark : UIBlurEffectStyleLight;
_hud.contentColor = [ThemeManager sharedCurrentTheme].textColor;
}
_refreshing = YES;
}
else if (!show) {
[_hud hideAnimated:YES];
_refreshing = NO;
}
_titleinfobaritem.enabled = !show;
_shareitembaritem.enabled = !show;
_optionsitembaritem.enabled = !show;
Note: _hud is a property with the type of MBProgressHUD.
Is self.view a table view? I'd not recommend putting the HUD on a table view (see the Readme).
Other than that, I's going to be hard for me to reason about this without concrete reproduction steps in the example or an isolated sample. If you manage to get any more information please feel free to update this ticket or open a PR.
I figured out the problem. The library FrameAccessor was causing the issue. I created a subclass for UIView and have the library point to that subclass so that library won't interfere with all the views, only the libraries that need FrameAccessor
The progress indicator is not centered when the HUD control is shown in iOS 13