iPhone应用程序UI实施建议
我正在构建一个 iPhone 应用程序,其功能与许多餐厅查找应用程序类似。启动后,应用程序将启动一个视图,允许用户指定用于执行搜索的邮政编码。或者,如果用户拥有带有 GPS 的 iPhone,则应用程序将根据用户当前位置自动执行搜索,尽管用户可以指定自己的位置。
执行搜索后,用户将看到一个选项卡栏视图,其中显示所有结果的列表,或一个地图视图,其中包含指定范围内的所有结果。最后,将有一个详细信息视图,它为用户提供有关列表或地图中任何一个特定结果的详细信息。
应用程序的流程应如下所示:
搜索 -> (列表 | 地图)->详细信息
我对 iPhone 开发非常陌生,因此我希望获得一些有关如何组合界面的反馈。
我想的是我可以使用导航视图控制器来打开搜索视图。当用户单击“搜索”按钮时,应用程序会将视图切换到包含选项卡栏控制器的视图(一个选项卡用于列表,另一个选项卡用于地图)。列表视图和地图视图都将放置在另一个导航视图中,当用户尝试深入查看详细信息视图时,这将允许用户切换到详细信息视图。
我的问题解决方案听起来可行吗?我应该考虑其他方法吗?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不会使用选项卡栏在地图和列表之间切换。它们基本上显示相同的数据,只是以不同的方式。这通常是通过标题栏中的分段控件来完成的。
使用一个 UINavigationController 在 3 个主要视图之间切换(搜索 >(列表 | 地图)> 详细信息)。
在(列表 | 地图)视图中,使用 UISegmentedControl 在查看模式之间切换。
在详细信息视图中,用户可以使用后退按钮返回到搜索结果。
我很快想出了两个模型:
alt text http://img340.imageshack.us/ img340/8913/uimockup.png 替代文本 http://img219.imageshack .us/img219/9553/uimockup2.png
I wouldn't use a tab bar for switching between the map and the list. They basically display the same data, just in a different way. This is usually done with a segmented control in the title bar.
Use one UINavigationController to switch between the 3 main views (Search > (list | map) > details).
Within the (list | map) view, use a UISegmentedControl to switch between viewing modes.
When in the details view, users can go back to the search results by using the back button.
Two mockups I came up with quickly:
alt text http://img340.imageshack.us/img340/8913/uimockup.png alt text http://img219.imageshack.us/img219/9553/uimockup2.png