How to Create an Xcode Project for an iPad App - dummies

How to Create an Xcode Project for an iPad App

By Neal Goldstein, Tony Bove

To develop an iPad app (or an app for the iPhone or any other Mac device), you work in what’s called an Xcode project. So, time to fire your own Xcode project up.

1Launch Xcode.

By default, Xcode is downloaded to /Developer/Applications, where you can track it down to launch it. When you launch Xcode, you see the Welcome screen (after using Xcode to create projects, your Welcome screen will list all of your most recent projects in the right column). It’s chock-full of links to the Apple Developer Connection and Xcode documentation.

If you don’t want to be bothered with the Welcome screen in the future, deselect the Show This Window When Xcode Launches check box.

2Select Create a New Xcode Project from the Welcome screen (or choose File→New Project) to create a new project.

You can also just press Shift+Command+N. No matter what you do to start a new project, you’re greeted by the New Project window. The New Project window is where you get to choose the template you want for your new project.

3In the upper-left corner of the New Project window, click Application under the iPhone OS heading if it isn't already selected.

With Application selected, the main pane of the New Project window shows several choices. Each of these choices is actually a template that, when chosen, generates some code to get you started.

4Select View-Based Application from the template choices displayed.

When you select a template, a brief description of the template is displayed underneath the main pane.

5Select iPad from the Product pop-up menu, and then click Choose.

You must choose iPad (not iPhone) from the Product pop-up menu to start a new iPad project from scratch — this choice puts the standard iPad resources into your project. After clicking Choose, the Save As dialog appears.

6Enter a name for your new project in the Save As field, choose a Save location (the Desktop or any folder works just fine), and then click Save.

After you click Save, Xcode creates the project and opens the Project window. (In this figure, the project is named DeepThoughts.)