New iPhone App - How to Choose which Xcode Template to Use?

Greg picture Greg · Dec 14, 2008 · Viewed 19.9k times · Source

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?

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
  • Tab Bar Application
  • Utility Application
  • View-Based Application
  • Window-Based Application

Answer

Daniel Silveira picture Daniel Silveira · Aug 21, 2009

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

  • Navigation-Based Application. An application that presents data hierarchically, using multiple screens. The Contacts application is an example of a navigation-based application.
  • OpenGL ES Application. An application that uses an OpenGL ES–based view to present images or animation.
  • 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.
  • 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.
  • 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.