소스 검색

merge options only when viewController is loaded and visible

yogevbd 6 년 전
부모
커밋
4387d4fd4b
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3
    1
      lib/ios/RNNCommandsHandler.m

+ 3
- 1
lib/ios/RNNCommandsHandler.m 파일 보기

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