如何在使用splitViewController时使横向视图看起来与portraitView相同? [英] How to make the landscape view look same as the portraitView while using a splitViewController?

查看:51
本文介绍了如何在使用splitViewController时使横向视图看起来与portraitView相同?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的意思是,当我们使用UISplitViewController项目时

What I meant is, When we use a UISplitViewController project

在纵向模式下,整个窗口将被视图覆盖,并且将显示一个popoverController以导航到其他观点。在横向模式下,窗口的40%将被tableView覆盖,我们可以使用它更改视图/页面。导航按钮以及popoverController将被隐藏。

In portrait mode, whole window will be covered by the view and a popoverController will be presented to navigate to other views. In landscape mode, 40% of the window will be covered by a tableView using which we can change the view/page. And navigation button as well as popoverController will be hidden.

我想要的是,

即使在横向模式下也是如此,它应该像肖像模式。没有tablewView应该在那里。整个窗口应以横向模式覆盖视图。对于导航到其他页面,导航按钮以及popoverController应该在那里。

Even in landscape mode, it should be like portrait mode. No tablewView should be there. Whole window should be covered with the view in landscape mode. For navigating to other pages, a navigation button as well as the popoverController should be there.

我该怎么做? Plz帮助我...

How can I do this?? Plz help me...

推荐答案

登录您的开发者帐户,转到dev论坛并搜索UISplitViewController settings.app。那里有很多关于那个的讨论。总结是你无法做到这一点虽然控制器显然有一些私人功能使其成为可能(提交一个错误报告告诉苹果他们应该暴露这种能力)。关于从头开始构建一个splitview控制器的讨论很多,主要是这样。或者,重新考虑你的设计。

Login to your developer account, goto dev forums and search for "UISplitViewController settings.app". there's lots of talk about that there. The summary is you can't do it though that controller apparently has some private features which make it possible (file a bug report telling apple they should expose that capability). There is a long discussion about building a splitview controller from scratch that mostly works this way. Alternately, rethink your design.

这篇关于如何在使用splitViewController时使横向视图看起来与portraitView相同?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆