浏览代码

Fix sideMenu orientation options (#4995)

Yogev Ben David 5 年前
父节点
当前提交
0e1a35d467
没有帐户链接到提交者的电子邮件
共有 2 个文件被更改,包括 8 次插入0 次删除
  1. 4
    0
      lib/ios/RNNSideMenuChildVC.m
  2. 4
    0
      lib/ios/RNNSideMenuController.m

+ 4
- 0
lib/ios/RNNSideMenuChildVC.m 查看文件

@@ -60,4 +60,8 @@
60 60
 	return self.child.preferredStatusBarStyle;
61 61
 }
62 62
 
63
+- (UIInterfaceOrientationMask)supportedInterfaceOrientations {
64
+	return self.child.supportedInterfaceOrientations;
65
+}
66
+
63 67
 @end

+ 4
- 0
lib/ios/RNNSideMenuController.m 查看文件

@@ -119,6 +119,10 @@
119 119
 	return self.openedViewController.preferredStatusBarStyle;
120 120
 }
121 121
 
122
+- (UIInterfaceOrientationMask)supportedInterfaceOrientations {
123
+	return self.openedViewController.supportedInterfaceOrientations;
124
+}
125
+
122 126
 - (UIViewController *)openedViewController {
123 127
 	switch (self.openSide) {
124 128
 		case MMDrawerSideNone: