UISplitview - 不是来自 appdelegate

发布于 2024-10-29 07:43:30 字数 111 浏览 5 评论 0原文

我正在尝试做一个需要使用 UISPlitview 的 iPad 应用程序。我找到了很多关于如何执行此操作的示例,但它们都来自使用 AppDelegate 的起点。有谁有在从先前视图推送的视图中使用它的示例吗?

I am trying to do an IPad app that needs to use UISPlitview. I have found a lot of examples of how to do this but they all come from the starting point of using the AppDelegate. Does anyone have a sample where it is used in the view pushed from a previous view?

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

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

发布评论

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

评论(1

迷雾森÷林ヴ 2024-11-05 07:43:30

在我搜索基本 splitviewcontroller 问题的答案时,我遇到了您的问题。现在有点旧了,但我想我会为下一个在论坛中找到问题的人提供答案。

如果我理解你的问题,你有视图,并且在某个阶段通过用户选择你想在窗口上显示分割视图,这是正确的吗?

你真的必须了解 splitviewcontroller 的理论以及苹果公司对该理论的期望。当你明白这一点时,你就会知道你想做的并不是苹果真正想要的(或者至少在 3.2 开始时)。 Splitview 应该是您应用程序的根视图。因此始终存在并且不会在以后推送或添加。

现在,如果你用谷歌搜索足够长的时间,你会发现人们已经解决这个问题的例子。例如,看看“Splitview in tabbarcontroller”。但还有其他的。

至于这方面的好教程或示例,我还没有看到,但有很多论坛问题和解决方法的答案。

In my searches for answers to basic splitviewcontroller questions I have come across your question. It is a little old now but I thought I would provide an answer for the next person that finds the question in the forum.

If I understand your question you have views and at some stage through user selection you would like to display a splitview on the window, is this correct?

You really have to understand the theory of a splitviewcontroller and also the wishes of Apple on that theory. When you understand this you will know that what you want to do is not really (or at least at the beginning of 3.2) what Apple would like. The Splitview should be the rootview of your app. Thus always there and not pushed or added later.

Now if you google long enough you will find examples where people have worked around this. Look at for example "Splitview in tabbarcontroller". But there are others.

As for a nice tutorial or example on this, I have not seen one but there are lots of forum questions and answers of workarounds of doing this.

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