我的地理定位应用程序应该使用什么应用程序模板?
我已阅读这个问题关于差异在 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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
该选择不会对您的最终产品产生太大影响。真正的问题是哪种模板让我最接近我正在设计的应用程序。
基于视图的应用程序模板适用于具有单一视图的应用程序。不过,这只是一个起点,之后您可以随时向其中添加更多视图/控制器。基于视图的模板没有什么特殊之处,您无法将其添加到基于窗口的模板中,如此 博客文章。
您的应用程序听起来可能会从基于导航的模板中受益更多。这将为您提供一个 UINavigationController 和一个 UITableViewController 供您最初使用,我猜这将与您的服务站列表配合良好。也许当选择一个服务站时,您会推送一个显示服务站详细信息的地理定位(sp?)视图控制器?
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.
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?
基于视图的应用程序说明:
如果您的应用程序的设计仅包含单个视图,那么选择基于视图的应用程序将为您省去创建和链接该视图的麻烦。即使您的应用程序有多个视图,基于视图仍然可以节省您创建初始视图的时间。当您知道要设置自定义内容时,您需要基于窗口的应用程序。
View-based Application description:
If your app's design contains only a single view, then choosing View-based Application will save you the trouble of creating and linking that view. Even if your app has more than one view, View-based can still save you the time of making that initial view. You want Window-based Application for when you know you're setting up something custom.