Showing
1 changed file
with
1 additions
and
1 deletions
@@ -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]; |
-
Please register or login to post a comment