如何创建一系列 modalViewController?

发布于 2024-08-13 05:15:04 字数 356 浏览 2 评论 0原文

我一直在挣扎,现在我只需要看到它的实际效果。我的标题页 (UIViewController) 上有一个信息按钮,我想打开一个关于视图,左侧有一个“关闭”按钮,右侧有一个“详细信息披露”。如果按下“详细信息披露”,则会使用相同的按钮调出“隐私声明”视图。如果按下“详细信息披露”,则会显示信用视图。我应该能够继续进行额外的法律等。

根据苹果文档的说法,一次解雇将解雇整个序列,无论当时在哪里。

我已经能够表达观点,但他们不会自我否定。这些让我认为我没有使用首选方法,而是开发了一种临时方法,这给我留下了悬空的结构。

有什么建议吗?我有我的想法,但我只有一层两层深度,解散不起作用! :( 我完全陷入了死胡同,必须退出应用程序才能返回真正的应用程序视图。

I have struggled and now I just need to see it in action. I have an info-button on my title page (UIViewController) and I want to bring up an About-view with a 'dismiss' button on the left and a 'detail disclosure on the right.' If one presses the 'detail disclosure', it brings up the PrivacyStatement-view with the same buttons. If one presses the 'detail disclosure', it will bring up a Credits-view. I should be able to continue this for additional Legal, etc.

According to the Apple doc's one dismiss will dismiss the entire sequence, regardless of where one is at the time.

I have been able to get the views to show, but they won't dismiss themselves. These leads me to think that I am not using the preferred approach but rather, I have developed an ad-hoc approach that leaves me with dangling structures.

Any suggestions? I have my thoughts, but I am only one two levels deep and the dismiss doesn't work! :( I have a total dead-end and have to Quit the app to get back on the real App view.

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

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

发布评论

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

评论(1

不弃不离 2024-08-20 05:15:04

我得到了它!基本上,代码沿着视图控制器的“工作流程”级联。我设计了一种风格,其中大部分技术课程管理都是由工具完成的,而我则负责簿记和内容。我需要对内存管理进行一些审查,因为我认为我当前的代码可能会在路径上上下泄漏控制器。另外,我可以来回遍历的事实让我认为我实际上只有一堆视图而不是模态视图。我将在本周末的某个时候发布代码。

I got it! Basically, the code is cascaded along the 'workflow' of viewcontrollers. I devised a style where most of the technical class management is done by the tools and leaves me with book keeping and content. I will need some review for memory management, as I think my current code is probably leaking controllers up and down the path. Also, the fact that I can traverse back and forth leads me to think that I really just have a stack of views and not modal views. I will post the code sometime by the end of the week.

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