Explorar el Código

merge options only when viewController is loaded and visible

yogevbd hace 6 años
padre
commit
4387d4fd4b
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3
    1
      lib/ios/RNNCommandsHandler.m

+ 3
- 1
lib/ios/RNNCommandsHandler.m Ver fichero

@@ -66,7 +66,9 @@ static NSString* const setDefaultOptions	= @"setDefaultOptions";
66 66
 		[CATransaction begin];
67 67
 		[CATransaction setCompletionBlock:completion];
68 68
 		
69
-		[rootVc.options applyOn:vc];
69
+		if (rootVc.isViewLoaded && rootVc.view.window) {
70
+			[rootVc.options applyOn:vc];
71
+		}
70 72
 		
71 73
 		[CATransaction commit];
72 74
 	}