yogevbd 6 年之前
父節點
當前提交
89cf84f1ab
共有 1 個檔案被更改,包括 2 行新增1 行删除
  1. 2
    1
      lib/ios/RNNOverlayManager.m

+ 2
- 1
lib/ios/RNNOverlayManager.m 查看文件

@@ -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