UISplitview 无法用 UIInterfaceOrientation~ipad 显示完整

发布于 2024-09-29 06:46:37 字数 303 浏览 0 评论 0原文

<key>UIInterfaceOrientation~ipad</key>
<string>UIInterfaceOrientationLandscapeRight</string>

在 Info.plist 中

添加了当我运行应用程序时,应用程序无法显示完整。 alt text

为什么以及如何在 UISplitview 中填充到右栏?

I added

<key>UIInterfaceOrientation~ipad</key>
<string>UIInterfaceOrientationLandscapeRight</string>

in Info.plist

When I run the app, app can't show full.
alt text

Why and how to make full to rightbar in UISplitview ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

迷路的信 2024-10-06 06:46:37

您确定未将详细视图设置为主视图吗?
从你的截图来看就是这样的。

您可能想将(这也可能是一个问题)更改

<key>UIInterfaceOrientation~ipad</key>

为:

<key>UIInterfaceOrientation-ipad</key>

Are you sure that the Detail View isn't setup as a Master view?
Thats what it looks like from your screenshot.

and you might want to change (which could also be an issue):

<key>UIInterfaceOrientation~ipad</key>

to:

<key>UIInterfaceOrientation-ipad</key>
浅沫记忆 2024-10-06 06:46:37

我遇到了一个非常类似的问题,这是因为我对 UISplitViewController 进行了子类化,并意外地覆盖了 私有方法 detailViewController

I had a very similar problem and it is because I had subclassed UISplitViewController and accidentally overridden the private method detailViewController.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文