浏览代码

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
 
56
 
57
 - (void)rnn_setDrawBehindTopBar:(BOOL)drawBehind {
57
 - (void)rnn_setDrawBehindTopBar:(BOOL)drawBehind {
58
 	if (drawBehind) {
58
 	if (drawBehind) {
59
+		[self setExtendedLayoutIncludesOpaqueBars:YES];
59
 		self.edgesForExtendedLayout |= UIRectEdgeTop;
60
 		self.edgesForExtendedLayout |= UIRectEdgeTop;
60
 	} else {
61
 	} else {
61
 		self.edgesForExtendedLayout &= ~UIRectEdgeTop;
62
 		self.edgesForExtendedLayout &= ~UIRectEdgeTop;
67
 		[self setExtendedLayoutIncludesOpaqueBars:YES];
68
 		[self setExtendedLayoutIncludesOpaqueBars:YES];
68
 		self.edgesForExtendedLayout |= UIRectEdgeBottom;
69
 		self.edgesForExtendedLayout |= UIRectEdgeBottom;
69
 	} else {
70
 	} else {
70
-		[self setExtendedLayoutIncludesOpaqueBars:NO];
71
 		self.edgesForExtendedLayout &= ~UIRectEdgeBottom;
71
 		self.edgesForExtendedLayout &= ~UIRectEdgeBottom;
72
 	}
72
 	}
73
 }
73
 }