samvermette/SVProgressHUD — Issue #18: UIWindow issue
Author: jonyfive
Created: 2011-10-26 20:44:31+00:00
State: open

Hi,

I had a problem when I wanted to show SVProgressHUD in some cases. Eventually in this part of the code:

NSArray *keyWindows = [UIApplication sharedApplication].windows;
UIWindow *keyWindow = [keyWindows lastObject];

The keyWindow is set to "_UIAlertOverlayWindow" and the the behavior of the SVProgressHUD is wrong (it showes and hides too fast). I've fixed with:

UIWindow *keyWindow = nil;
if ([keyWindows count] != 0) {
keyWindow = [keyWindows objectAtIndex:0];
}

Is it a problem?

Thank you!