桌面视图/导航控制器只是其中一部分的应用程序的最佳起点
我组装了一个应用程序,它使用表视图和导航控制器来显示文档列表(HTML 文档),并且通过单击文档标题将打开详细视图并显示其内容。这确实是一种享受,但它最终将成为一个更大的应用程序的一部分,该应用程序将有一个菜单,而这只是其中的一个选项。
我已经做了很多挖掘,但仍然不确定构建整个应用程序的最佳方法。很多建议似乎是使用基于导航的应用程序模板并推出菜单视图并隐藏导航栏,但这真的是推荐的方法吗?
我读过 Apple 文档,模态视图控制器听起来像是可以选择,但我不确定如何插入现有的 RootViewController 等?
真的很感谢有人花时间帮助我走上正轨
干杯 基隆
I've put together an app that uses a table view and navigation controller to display a list of documents (HTML docs) and by clicking on a document title will open up a detail view and display its contents. That works a treat but it will ultimately be part of a bigger app which will have a menu of which this would be just one of the options.
I've done a lot of digging around but am still unsure on the best approach to take for building the overall app. A lot of advice seems to be to use the navigation based application template and push out the menu view and hide the navigation bar but is this really the recommended way to go?
I've read the Apple docs and Modal View controllers sounds like they could be and option but I am then unsure how I would slot in my existing RootViewController etc?
Really appreciate someone taking the time to help get me on the right track
Cheers
Kieron
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用导航控制器是构建此结构的一种非常常见的方法。正如您所注意到的,导航栏本身可以隐藏在某些视图控制器上。
以模态方式呈现视图控制器时要小心——Apple 在 HIG 中的建议是,当你将用户的注意力集中在某条信息或关键任务上时使用模态——不要随意使用它们。
Using a navigation controller is a very common way of structuring this. And as you note, the nav bar itself can be hidden on some view controllers.
Be careful about presenting view controllers modally -- Apple's advice in the HIG is to use modals when you are focusing the user's attention on a certain piece of information or a crucial task -- don't just use them willy-nilly.