我正在编写一个 iPhone 应用程序,并且有一个关于如何管理视图演示的问题。事实上,当用户启动应用程序时,会显示一个包含搜索表单的“主页”视图。当用户按下“搜索”按钮时,我想要一种方法来打开显示搜索结果的导航控制器。我制作了另一个包含 TableView 的视图,其目的是充当“结果”视图。我希望“结果”视图允许用户返回“主页”视图(搜索表单),但我不希望“主页”视图有导航控制器栏...
有关如何解决的任何想法这 ?
提前致谢,
斯蒂芬
I'm coding an iphone app and I've an issue on how to manage views presentation. Indeed, when user starts the app a "home" View shows up containing a search form. When user presses a "search" button I want a method to open a navcontroller that displays the search results. I made another view containing a TableView with the purpose of serving as "results" View. I want the "results" view to allow user to go back to the "home" view (the search form) but I don't want the "home" view to have a navigation controller bar...
Any idea on how to solve this ?
Thx in advance,
Stephane
发布评论
评论(2)
更简单的方法就是隐藏“主页”视图上的导航栏并将其显示在其他视图上......
The easier way is just to hide the navigation bar on the 'home' view and show it back on the other view...
您必须手动创建 UINavigation 控制器并按如下方式呈现它:
You have to create a UINavigation controller manually and present it modally as follows: