iOS5 - Storyboard/Segues - 在 UINavigationController 中返回/跳转到之前的 UIViewController

发布于 2025-01-08 03:37:53 字数 497 浏览 3 评论 0原文

我正在使用 Storyboard 开发一个 iOS5 iPhone 项目。我正在使用一个基于 UINavigationController 的应用程序并推送一些 UIViewControllers。我想知道以超过 1 个后级跳回先前 UIViewController 的最佳方法是什么。这里有更详细的解释:

(All is managed with a UINavigationController)
RootController is ViewController1
I push ViewController2
From ViewController2, I push ViewController3
I want to come back to UIViewController1 from a UIButton in UIViewController 3

对最佳方法有什么建议吗?

非常感谢

已解决!使用Delegate模式设计并切换到UIViewController1。

I'm working on an iOS5 iPhone project with Storyboard. I'm using an app based on UINavigationController and pushing some UIViewControllers. I want to know what is the best approach to jump back with more than 1 back level to a previous UIViewController. Here a more detailed explanation:

(All is managed with a UINavigationController)
RootController is ViewController1
I push ViewController2
From ViewController2, I push ViewController3
I want to come back to UIViewController1 from a UIButton in UIViewController 3

Any suggestion for the best approach?

Thank you very much

SOLVED! using Delegate patter design and switching to UIViewController1.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文