修改弹窗

This commit is contained in:
2025-12-22 15:49:28 +08:00
parent 1c9ae7bc06
commit 9e33c93763
3 changed files with 11 additions and 3 deletions

View File

@@ -58,6 +58,12 @@ static __weak UIView *sContainerView = nil; // 缺省承载视图(
if (!hostView) { return nil; }
MBProgressHUD *hud = sHUD;
if (hud && hud.superview != hostView) {
// Host view changed or HUD was removed; discard and recreate.
[hud removeFromSuperview];
hud = nil;
sHUD = nil;
}
if (!hud) {
hud = [MBProgressHUD showHUDAddedTo:hostView animated:YES];
sHUD = hud;
@@ -70,6 +76,9 @@ static __weak UIView *sContainerView = nil; // 缺省承载视图(
hud.margin = 16;
hud.label.numberOfLines = 0;
hud.detailsLabel.numberOfLines = 0;
} else {
// If a previous hide is in progress, bring it back.
[hud showAnimated:YES];
}
// show
[self applyMaskType:mask hud:hud];

View File

@@ -293,7 +293,7 @@ typedef NS_ENUM(NSInteger, KBSkinDetailSection) {
mode:KBSkinSourceModeRemoteZip
completion:^(BOOL success) {
if (success) {
[KBHUD showSuccess:KBLocalized(@"已开始下载")];
// [KBHUD showSuccess:KBLocalized(@"已开始下载")];
} else {
[KBHUD showInfo:KBLocalized(@"下载失败")];
}