iPad SplitViewController 具有用于详细视图的单独导航堆栈

发布于 2024-10-12 17:59:05 字数 783 浏览 4 评论 0原文

我希望有人能告诉我是否可以在分割视图控制器的详细视图上放置一个单独的导航堆栈。我已经为这个问题绞尽脑汁有一段时间了,现在想知道这是否可能。

我正在开发一个通用应用程序,允许用户浏览会议日程。在 iPhone 上,这只是一个表视图,其中用户:

--> 从主题列表(普通表)中选择会话主题

----> 从主题列表(普通表)中选择会话标题

-- ----> 查看有关会议的详细信息,包括要提交的论文,并且可以选择单个表格(分组表格)

--------> 查看有关论文的详细信息(分组表格)

我想要什么ipad 版本的操作是这样的: --> 从主题列表(根控制器、普通表)中选择会话主题

----> 从主题列表(根控制器、普通表)中选择会话标题

------>查看有关会议的详细信息,包括要提交的论文,并且可以选择单个表格(详细控制器,分组表)

--------> 查看有关论文的详细信息(详细控制器,分组表)

这是目标,但是我在让细节控制器拥有单独的导航堆栈方面所做的一切尝试都搞砸了分割视图控制器。我可以让一切顺利进行到最后一步。但是,一旦我将有关纸张的详细信息推送到详细控制器堆栈上,分割视图控制器就会变得疯狂。

有没有人完成过像我上面描述的那样的事情?

我可以简单地用论文详细信息控制器替换会话详细信息控制器,而不是尝试将其推入堆栈。但随后我就失去了导航堆栈的所有好处,失去了所有免费的过渡动画,并且必须为 iPhone 和 iPad 维护同一张表格的大幅修改版本。

预先感谢您的任何建议。

I'm hoping someone can tell me if it's possible to put a separate navigation stack on the detail view for a split view controller. I've been banging my head against this problem for a while and now am wondering if it's even possible.

I'm developing a universal application that allows users to browse a conference schedule. On the iphone this is simply a a table view where users:

-->selects a session topic from a list of topics (plain table)

---->selects a session title from a list of topics(plain table)

------>sees details about the session including papers to be presented and can selected a individual table (grouped table)

-------->sees details about the paper (grouped table)

What I'd like to do for the ipad version is something like this:
-->selects a session topic from a list of topics (root controller, plain table)

---->selects a session title from a list of topics(root controller, plain table)

------>sees details about the session including papers to be presented and can selected a individual table (detail controller, grouped table)

-------->sees details about the paper (detail controller, grouped table)

That's the goal, but everything I've tried in terms of getting the detail controller to have a separate navigation stack has screwed up the split view controller. I can get everything up to the last step working fine. But as soon as I push a the details about the paper onto the detail controller stack, the splitview controller goes crazy.

Has anyone accomplished something like what I'm describing above?

I could simply replace the session details controller with the papers detail controller instead of trying to push it onto the stack. But then I lose all the benefits of the nav stack, lose all the free transition animations, and have to maintain a substantially altered version of the same table for the iPhone and iPad.

Thanks in advance for any suggestions.

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

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

发布评论

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

评论(1

哀由 2024-10-19 17:59:05

我发誓,有时我认为堆栈溢出最大的好处是公开发布问题会激励我自己解决它。

所以我所描述的绝对是可能的。只需查看设置应用程序即可。它的作用正是我所描述的。

我遇到的问题是我的一些细节视图控制器,因为它们是从 iPhone 版本继承的,所以没有实现“shouldAutoRotate”。一旦我添加了这一点,一切就都到位了。

如果其他人遇到类似的问题,我可能还建议您从 Matt Long 的演练开始,在此处向 splitViewController 添加导航堆栈:http://www.cimgf.com/2010/05/24/fixing-the-uisplitviewcontroller-template/

I swear, sometimes I think stack overflows greatest benefit is how often publicly posting a problem spurs me to solve it myself.

So what I describe is definitely possible. Simply look at the settings app. It does exactly what I describe.

The problem I had was that some of my detail view controllers, because they were inherietend from the iPhone version, did not implement "shouldAutoRotate". Once I added that, everything fell into place.

If anyone else if facing a similar problem, I might also suggest you start with Matt Long's walkthrough of adding a navigation stack to the splitViewController here:http://www.cimgf.com/2010/05/24/fixing-the-uisplitviewcontroller-template/

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