简体   繁体   English

在横向模式下向窗口添加新视图以纵向模式渲染视图

[英]Adding new view to Window whilst in Landscape mode renders view in portrait mode

I am using Xcode's SplitView template in Landscape mode. 我在横向模式下使用Xcode的SplitView模板。

In the AppDelegate I am adding a new view to the window whilst in Landscape mode however it appears in Portrait mode. 在横向模式下,我正在AppDelegate中向窗口添加新视图,但是在纵向模式下会出现。

I want it to be added in Landscape mode over the splitview. 我希望将其以横向模式添加到splitview中。

My plist is set to LandscapeLeft only. 我的列表仅设置为LandscapeLeft。

[self.splitViewController.view addSubview:newController.view];

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在纵向模式和横向模式下调整图像视图的大小 - Resizing image view in Portrait mode and landscape mode 如何将视图从纵向模式旋转到横向模式 - How to rotate view from portrait to landscape mode 将我的视图控制器的肖像旋转为横向和纵向模式 - Rotate portrait to landscape and portrait mode of my view controller 模式视图中的UIWebview在横向模式下以纵向显示 - UIWebview in a modal view is being shown in portrait in Landscape mode 如何将视图从纵向模式更改为横向模式? - How can I change the view from portrait to landscape mode? 为什么我的视图没有以横向显示而不是纵向显示? - Why doesn't my view display in Landscape instead of Portrait mode? 如何支持纵向和横向模式 - 使用XIB的可重用视图 - How to support both Portrait and Landscape mode - reusable view with XIBs 在纵向模式下保持一个视图控制器,在横向模式下保持另一个视图控制器 - Maintain one view controller in Portrait and other in Landscape mode iOS iPhone应用程序处于横向模式,但视图的边界仍然是纵向 - iPhone app is in landscape mode, but view's bounds is still portrait 在横向模式下捕捉视图 - Catch View in Landscape Mode
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM