【发布时间】:2016-05-24 08:27:14
【问题描述】:
是否可以只旋转其中一个子vc?
xamarin 代码(和 swift 差不多)
mainVC.addChildViewController(childVC_A);
mainVC.addChildViewController(childVC_B);
mainVC.addSubView(childVC_A.View);
mainVC.addSubView(childVC_B.View);
mainVC 使 shouldAutorotate 为真,GetSupportedInterfaceOrientations 返回所有方向;
我只希望 childVC_A 自动旋转到横向模式,而 childVC_B 始终保持纵向模式。
childVC_A 具有 shouldAutorotate 为 true 和 GetSupportedInterfaceOrientations 以返回所有方向;
childVC_B 具有 shouldAutorotate 为 false 和 GetSupportedInterfaceOrientations 以仅返回纵向;
这可能吗?
【问题讨论】:
标签: ios swift xamarin uiviewcontroller