Closed marinofaggiana closed 9 years ago
Is the same code working on iOS 8?
yes! in OS8 no problem !
Check if [UIApplication sharedApplication].keyWindow is perhaps nil. Can't tell much more from what you provided.
this is my code :
(void)visibleHudIndeterminate:(NSString )title withButton:(NSString )buttonTitle
{
if ([UIApplication sharedApplication].keyWindow) self.hud = [MBProgressHUD showHUDAddedTo:[UIApplication sharedApplication].keyWindow animated:NO];
else return;
if (!self.hud) return;
self.hud.removeFromSuperViewOnHide = YES; self.hud.mode = MBProgressHUDModeIndeterminate; self.hud.delegate = self; if ([title length]) self.hud.labelText = NSLocalizedString(title, nil); if ([buttonTitle length]) self.hud.buttonTitle = NSLocalizedString(buttonTitle, nil); self.hud.hidden = NO; }
[UIApplication sharedApplication].keyWindow is NOT nil
the problem is only next call alertView ...
Can you attach a sample project that exhibits the issue?
i have discovered the problem ... the problem isn't of MBProgressHUD but in a contributory cause of factors ... thanks !!
Hi, if i have
next i call
HUD is not visible .. ? why ?
thanks