设计一个“向导” iPad 上的一组屏幕
我想在 iPad 上构建一组引导式“向导”屏幕。因此,有一个主屏幕,其中包含 N 个引导的子步骤。您应该能够在这些步骤中前后移动,而且还有一个可转到基本步骤的“主页”按钮。
因此,技术挑战是:一个屏幕如何自行卸载并加载序列中的下一个屏幕?
I want to build a guided "Wizard" set of screens on the iPad. So there is one master screen with N sub-steps in it that are guided through. You should be able to go backwards and forwards through the steps, but also have a "Home" button that goes to the base step.
So the technical challenge is: how does a screen unload itself and load another screen that is the next in the sequence?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我强烈建议您使用 UINavigationController (可能作为 ModalViewController),因为它旨在以这种方式使用,并为每个配置步骤提供一系列子视图控制器。在整个视图控制器中共享一个对象来跟踪用户进度,瞧!
您可以使用单个 UIViewController 来显示/隐藏不同的全屏视图,但我真的不明白这样做的意义:UINavigationController 也会让您的用户感到熟悉,而自定义解决方案可能不会。
I strongly suggest you use a UINavigationController (possibly as a ModalViewController) as it is intended to be used that way, with a chain of sub view controllers for each step of configuration. Share a single object throughout your viewcontrollers to keep track of the user progress and voila!
You could use a single UIViewController with different full screen views being showed/hidden but I don't really see the point of doing it that way: the UINavigationController will also feel familiar for your users, where a custom solution might not.