简体   繁体   English

UISplitView-横向模拟肖像模式

[英]UISplitView - Mimic portrait mode in landscape

Is it possible to setup the UISplitViewController to work in landscape mode the same way as it does in portrait? 是否可以将UISplitViewController设置为在横向模式下与在纵向模式下相同? eg the details view takes the full screen with the master view contained in the popover. 例如,详细信息视图将全屏显示,并且弹出窗口中包含主视图。

The added complexity my layout has is that the details view on the right is contained within a navigation controller so the one or two examples I've seen of this don't seem to work. 我的布局增加了复杂性,因为右侧的详细信息视图包含在导航控制器中,因此我所看到的一个或两个示例似乎不起作用。

EDIT: I only need full-screen on one of the views in my detail view. 编辑:我只需要全屏查看详细视图中的视图之一。 It's showing photo's and they want to be able to see them full screen in landscape. 它正在显示照片,他们希望能够以横向全屏显示它们。

Why do you need to have a split view then? 那为什么需要分割视图? you can just have a normal view with a toolbar or a navigation bar, with a bar button item, which displays a pop over. 您只能使用工具栏或导航栏(带有显示弹出窗口的栏按钮)的普通视图。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM