|
@@ -16,7 +16,7 @@
|
16
|
16
|
[_overlayWindows addObject:overlayWindow];
|
17
|
17
|
[overlayWindow setWindowLevel:UIWindowLevelNormal];
|
18
|
18
|
[overlayWindow setRootViewController:viewController];
|
19
|
|
- [overlayWindow setHidden:NO];
|
|
19
|
+ [overlayWindow makeKeyAndVisible];
|
20
|
20
|
}
|
21
|
21
|
|
22
|
22
|
- (void)dismissOverlay:(UIViewController*)viewController {
|
|
@@ -29,6 +29,7 @@
|
29
|
29
|
- (void)detachOverlayWindow:(UIWindow *)overlayWindow {
|
30
|
30
|
[overlayWindow setHidden:YES];
|
31
|
31
|
[overlayWindow setRootViewController:nil];
|
|
32
|
+ [overlayWindow resignKeyWindow];
|
32
|
33
|
[_overlayWindows removeObject:overlayWindow];
|
33
|
34
|
}
|
34
|
35
|
|