在 AppDelegate 之外使用 UINavigationController 的应用程序框架
作为导航控制器的新手,我遇到了无法为 iPhone 应用程序解决的问题。我认为我应该采取另一种方法,而不是试图用太多文件中的太多代码来解决当前问题。
我想要的是类似于 tabBarController 的东西,但没有选项卡栏,因为它们占用了太多空间。于是我想到了一个具有以下结构的骨架。 替代文本 http://img413.imageshack.us/img413/2534/1007080002.jpg< /a>
SwitchViewController 将有一个在 MainView 和 SettingsView 之间切换的方法。 SettingsView 可以是一个导航控制器(带有表格视图),可以深入到下一个细节级别。
启动并运行该程序的最佳方法是什么?我见过的所有教程都有应用程序委托中的导航控制器,我认为这在这里不起作用?
有什么想法吗?
Still a newbie when it comes to navigation controllers I have ran into a problem I cant solve for my iPhone App. Instead of trying to solve current issues with too much code in too many files I thought I would take another approach.
What I want is a something similar to a tabBarController, but without the tab bars as they take too much space. So I thought of a skeleton with the following structure.
alt text http://img413.imageshack.us/img413/2534/1007080002.jpg
The SwitchViewController would have a method to switch between the MainView and the SettingsView. SettingsView could be a navigation controller (with a table view) that could drill in to next level of detail.
What would be the best approach to get this up and running? All tutorials I have seen have the navigation controller in the App Delegate, which I think would not work here?
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可能想从实用程序应用程序模板开始。想想“股票”应用程序。
You might want to start with the Utility App template. Think "Stocks" application.