소스 검색

Fixes setDrawBehindTabBar unnecessary call to setExtendedLayoutIncludesOpaqueBars

yogevbd 6 년 전
부모
커밋
67d3d10754
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      lib/ios/UIViewController+RNNOptions.m

+ 1
- 1
lib/ios/UIViewController+RNNOptions.m 파일 보기

@@ -56,6 +56,7 @@ const NSInteger BLUR_STATUS_TAG = 78264801;
56 56
 
57 57
 - (void)rnn_setDrawBehindTopBar:(BOOL)drawBehind {
58 58
 	if (drawBehind) {
59
+		[self setExtendedLayoutIncludesOpaqueBars:YES];
59 60
 		self.edgesForExtendedLayout |= UIRectEdgeTop;
60 61
 	} else {
61 62
 		self.edgesForExtendedLayout &= ~UIRectEdgeTop;
@@ -67,7 +68,6 @@ const NSInteger BLUR_STATUS_TAG = 78264801;
67 68
 		[self setExtendedLayoutIncludesOpaqueBars:YES];
68 69
 		self.edgesForExtendedLayout |= UIRectEdgeBottom;
69 70
 	} else {
70
-		[self setExtendedLayoutIncludesOpaqueBars:NO];
71 71
 		self.edgesForExtendedLayout &= ~UIRectEdgeBottom;
72 72
 	}
73 73
 }