新的iPhone应用程序 - 如何选择使用哪个Xcode模板?

时间:2023-01-17 09:40:50

In general I'd like to understand which templates to use when, when I'm making new iPhone apps. Could anyone offer some guidelines, tips, rules-of-thumb?

一般来说,我想了解当我制作新的iPhone应用程序时使用哪些模板。任何人都可以提供一些指导方针,提示,经验法则吗?

Also, how much should I agonize over this? If I start off with the wrong one, can I add the missing pieces manually, is it hard?

另外,我应该为此多少苦恼?如果我从错误的一个开始,我可以手动添加缺失的部分,是否很难?

For reference here are the choices I'm seeing:

这里参考的是我看到的选择:

  • Navigation-Based Application
  • 基于导航的应用程序
  • OpenGL ES Application
  • OpenGL ES应用程序
  • Tab Bar Application
  • 标签栏应用程序
  • Utility Application
  • 实用程序
  • View-Based Application
  • 基于视图的应用程序
  • Window-Based Application
  • 基于窗口的应用程序

4 个解决方案

#1


13  

Start with your prototype and possibly wireframes and then the correct template should jump out at you.

从您的原型和可能的线框开始,然后正确的模板应该跳出来。

If this does not work for you, then:

如果这对你不起作用,那么:

  1. If your app looks like 'Contacts', use Navigation-Based Application.

    如果您的应用看起来像“通讯录”,请使用基于导航的应用。

  2. If you're writing a game (or something that looks like one), then OpenGL.

    如果您正在编写游戏(或类似的游戏),那么就是OpenGL。

  3. If you're writing something like 'Calendar', then use Tab Bar App.

    如果您正在编写类似“日历”的内容,请使用Tab Bar App。

Hope this helps.

希望这可以帮助。

#2


20  

In iPhone Development Quick Start, from Apple, you have a brief description of each:

在Apple开发快速入门中,您可以对Apple进行简要介绍:

  • Navigation-Based Application. An application that presents data hierarchically, using multiple screens. The Contacts application is an example of a navigation-based application.
  • 基于导航的应用程序。使用多个屏幕分层显示数据的应用程序。 Contacts应用程序是基于导航的应用程序的示例。
  • OpenGL ES Application. An application that uses an OpenGL ES–based view to present images or animation.
  • OpenGL ES应用程序。使用基于OpenGL ES的视图呈现图像或动画的应用程序。
  • Tab Bar Application. An application that presents a radio interface that lets the user choose from several screens. The Clock application is an example of a tab bar application.
  • 标签栏应用程序。一个提供无线电接口的应用程序,允许用户从多个屏幕中进行选择。 Clock应用程序是标签栏应用程序的示例。
  • Utility Application. An application that implements a main view and lets the user access a flipside view to perform simple customizations. The Stocks application is an example of a utility application.
  • 实用程序。实现主视图并允许用户访问侧视图以执行简单自定义的应用程序。 Stocks应用程序是实用程序应用程序的示例。
  • View-Based Application. An application that uses a single view to implement its user interface.
  • 基于视图的应用程序。使用单个视图实现其用户界面的应用程序。
  • Window-Based Application. This template serves as a starting point for any application, containing an application delegate and a window. Use this template when you want to implement your own view hierarchy.
  • 基于窗口的应用程序。此模板充当任何应用程序的起点,包含应用程序委托和窗口。如果要实现自己的视图层次结构,请使用此模板。

#3


6  

If you don't know what template to use, it seems like your idea needs some refining. Usually, the app idea lends itself specifically to one of the templates.

如果你不知道使用什么模板,看起来你的想法需要一些改进。通常,app的想法特别适用于其中一个模板。

And no, you shouldn't agonize over this. If you start with the wrong template, you can add the missing pieces without much effort. You can even create a brand new project with the template you want and see how they do it, and just copy that in your program.

不,你不应该为此感到痛苦。如果您从错误的模板开始,您可以毫不费力地添加缺失的部分。您甚至可以使用所需的模板创建一个全新的项目,并查看他们是如何做到的,并将其复制到您的程序中。

#4


2  

Also note - there aren't that many templates. Create a new project for each one, Build and Run immediately, and you'll get an idea what you need.

另请注意 - 没有那么多模板。为每个项目创建一个新项目,立即构建并运行,您将了解您的需求。

#1


13  

Start with your prototype and possibly wireframes and then the correct template should jump out at you.

从您的原型和可能的线框开始,然后正确的模板应该跳出来。

If this does not work for you, then:

如果这对你不起作用,那么:

  1. If your app looks like 'Contacts', use Navigation-Based Application.

    如果您的应用看起来像“通讯录”,请使用基于导航的应用。

  2. If you're writing a game (or something that looks like one), then OpenGL.

    如果您正在编写游戏(或类似的游戏),那么就是OpenGL。

  3. If you're writing something like 'Calendar', then use Tab Bar App.

    如果您正在编写类似“日历”的内容,请使用Tab Bar App。

Hope this helps.

希望这可以帮助。

#2


20  

In iPhone Development Quick Start, from Apple, you have a brief description of each:

在Apple开发快速入门中,您可以对Apple进行简要介绍:

  • Navigation-Based Application. An application that presents data hierarchically, using multiple screens. The Contacts application is an example of a navigation-based application.
  • 基于导航的应用程序。使用多个屏幕分层显示数据的应用程序。 Contacts应用程序是基于导航的应用程序的示例。
  • OpenGL ES Application. An application that uses an OpenGL ES–based view to present images or animation.
  • OpenGL ES应用程序。使用基于OpenGL ES的视图呈现图像或动画的应用程序。
  • Tab Bar Application. An application that presents a radio interface that lets the user choose from several screens. The Clock application is an example of a tab bar application.
  • 标签栏应用程序。一个提供无线电接口的应用程序,允许用户从多个屏幕中进行选择。 Clock应用程序是标签栏应用程序的示例。
  • Utility Application. An application that implements a main view and lets the user access a flipside view to perform simple customizations. The Stocks application is an example of a utility application.
  • 实用程序。实现主视图并允许用户访问侧视图以执行简单自定义的应用程序。 Stocks应用程序是实用程序应用程序的示例。
  • View-Based Application. An application that uses a single view to implement its user interface.
  • 基于视图的应用程序。使用单个视图实现其用户界面的应用程序。
  • Window-Based Application. This template serves as a starting point for any application, containing an application delegate and a window. Use this template when you want to implement your own view hierarchy.
  • 基于窗口的应用程序。此模板充当任何应用程序的起点,包含应用程序委托和窗口。如果要实现自己的视图层次结构,请使用此模板。

#3


6  

If you don't know what template to use, it seems like your idea needs some refining. Usually, the app idea lends itself specifically to one of the templates.

如果你不知道使用什么模板,看起来你的想法需要一些改进。通常,app的想法特别适用于其中一个模板。

And no, you shouldn't agonize over this. If you start with the wrong template, you can add the missing pieces without much effort. You can even create a brand new project with the template you want and see how they do it, and just copy that in your program.

不,你不应该为此感到痛苦。如果您从错误的模板开始,您可以毫不费力地添加缺失的部分。您甚至可以使用所需的模板创建一个全新的项目,并查看他们是如何做到的,并将其复制到您的程序中。

#4


2  

Also note - there aren't that many templates. Create a new project for each one, Build and Run immediately, and you'll get an idea what you need.

另请注意 - 没有那么多模板。为每个项目创建一个新项目,立即构建并运行,您将了解您的需求。