0

I am building an iPhone app, which will function similarly to many restaurant finder applications. When launched, the application will start with a view that allows a user to specify a zip code for performing a search. Alternatively, if the user has an iPhone with a GPS, the application will automatically perform a search based on their current location, although it will be possible for the user to specify their own location.

After the search has been performed, the user will be presented with a tab bar view, which displays a list of all results, or a map view, containing all of the results within a specified range. Finally, there will be a details view, which gives the user detailed information about any one particular result from the list or map.

The application should flow as follows:

Search -> (list | map) -> details

I'm very new to iPhone development, so I'd appreciate some feedback on how to put together the interface.

What I'm thinking is I could use a navigation view controller for the opening search view. When the user clicks the "Search" button, the app will switch views to a view containing a tab bar controller (one tab for the list and another for the map). Both the list and map views will be placed inside yet another navigation view, which will allow the user to switch to the details view when the user attempts to drill down into the details view.

Does my solution to the problem sound feasible? Is there an alternative way I should consider?

4

1 回答 1

1

我不会使用标签栏在地图和列表之间切换。它们基本上显示相同的数据,只是以不同的方式。这通常通过标题栏中的分段控件来完成。

使用一个 UINavigationController 在 3 个主要视图之间切换(搜索 >(列表 | 地图)> 详细信息)。

在 (list | map) 视图中,使用 UISegmentedControl 在查看模式之间切换。在详细信息视图中,用户可以使用返回按钮返回搜索结果。

我很快想出了两个模型:

替代文字 http://img340.imageshack.us/img340/8913/uimockup.png 替代文字 http://img219.imageshack.us/img219/9553/uimockup2.png

于 2010-04-21T14:23:24.030 回答