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