Authored by 阿达

fix bug

@@ -442,7 +442,7 @@ static float kprogressViewRadius = 2.0f; @@ -442,7 +442,7 @@ static float kprogressViewRadius = 2.0f;
442 { 442 {
443 UIViewController *result = nil; 443 UIViewController *result = nil;
444 444
445 - UIWindow * window = [[UIApplication sharedApplication] keyWindow]; 445 + UIWindow * window = [[[UIApplication sharedApplication] delegate] window];
446 if (window.windowLevel != UIWindowLevelNormal) 446 if (window.windowLevel != UIWindowLevelNormal)
447 { 447 {
448 NSArray *windows = [[UIApplication sharedApplication] windows]; 448 NSArray *windows = [[UIApplication sharedApplication] windows];