我应该为我的地理位置应用程序使用什么应用程序模板? [英] What application template should I use for my geolocation application?

查看:120
本文介绍了我应该为我的地理位置应用程序使用什么应用程序模板?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已阅读此问题关于Xcode中基于窗口和基于视图的iOS应用程序模板的差异,但是我仍然对在iPhone应用程序中使用哪种模板感到困惑.

I have read this question about the differences in the window- and view-based iOS application templates in Xcode, but I'm still confused about what template to use in my iPhone app.

我正在为加油站开发一个地理定位应用程序.哪种模板更适合于此:基于视图的应用程序模板还是基于窗口的应用程序模板?

I am developing a geolocation app for service stations. What template would be more appropriate for this: the view-based application template or the window-based one?

推荐答案

选择不会对您的最终产品产生太大影响.真正的问题是,哪种模板最适合我要设计的应用程序.

The choice won't greatly affect your end product. The real question is what template gets me closest to the app I'm designing.

基于视图的应用程序模板适用于具有单个视图的应用程序.不过,这只是一个起点,您可以随时向其添加更多视图/控制器.您无法将基于视图的模板中的特殊内容添加到基于窗口的模板中,如以下

The view-based application template is geared towards an app with a single view. It's just a starting point, though, and you can always add more views/controllers to it afterwards. There's nothing special in the view-based template that you couldn't add to a window-based template, as shown in this blog post.

您的应用程序听起来可能会从基于导航的模板中受益更多.这将为您提供最初可以使用的UINavigationController和UITableViewController,我想这将与您的服务站列表一起很好地工作.或许当选择了服务站,你会推geolocalisation(藻?)视图控制器示出服务站的信息?

Your app sounds like it might benefit more from a navigation-based template. That will give you a UINavigationController and a UITableViewController to work with initially, and I'm guessing that would work well with your list of service stations. Perhaps when a service station is selected, you'd push a geolocalisation (sp?) view controller showing the details of the service station?

这篇关于我应该为我的地理位置应用程序使用什么应用程序模板?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆