jdg / MBProgressHUD

MBProgressHUD + Customizations
http://www.bukovinski.com/
MIT License
16.01k stars 3.56k forks source link

HUD non visible after alertView clickedButtonAtIndex IOS 7 #277

Closed marinofaggiana closed 9 years ago

marinofaggiana commented 9 years ago

Hi, if i have

 - (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex
{
     [alertView dismissWithClickedButtonIndex:buttonIndex animated:YES];
     [self performSelector:@selector(cmdRename:) withObject:[alertView textFieldAtIndex:0].text afterDelay:0.5];
     ......
 }

next i call

self.hud = [MBProgressHUD showHUDAddedTo:[UIApplication sharedApplication].keyWindow animated:NO];
....

HUD is not visible .. ? why ?

thanks

matej commented 9 years ago

Is the same code working on iOS 8?

marinofaggiana commented 9 years ago

yes! in OS8 no problem !

matej commented 9 years ago

Check if [UIApplication sharedApplication].keyWindow is perhaps nil. Can't tell much more from what you provided.

marinofaggiana commented 9 years ago

this is my code :

marinofaggiana commented 9 years ago

[UIApplication sharedApplication].keyWindow is NOT nil

marinofaggiana commented 9 years ago

the problem is only next call alertView ...

matej commented 9 years ago

Can you attach a sample project that exhibits the issue?

marinofaggiana commented 9 years ago

i have discovered the problem ... the problem isn't of MBProgressHUD but in a contributory cause of factors ... thanks !!