How to Create a Practice Project in Xcode
Because developing an iPhone and/or an iPad app requires you to work in an Xcode project, you should create one. You can build a practice app called RoadTrip (RoadTrip will also be the name of the project). The app is like a travel guide on your iOS device. Here’s how you get your RoadTrip project off the ground:
With Xcode 4.5, Xcode is now an application in the Mac App Store, which, right from the start, makes your life simpler. (You used to have to download a .dmg, or Disk Image file, and then run an installer).
Simply go the Mac App Store, search for Xcode 4, click the FREE button, and then click the INSTALL APP button that the Free button transmogrifies into, and you are done. After the download you’ll find the Xcode in your Applications folder. Double-click to launch it.
Click the Create a New Xcode Project link on the left side of the Welcome screen, or choose File→New→New Project to create a new project.
Alternatively, you can just press Shift+Cmd+N.
No matter how you decide to start a new project, you’re greeted by the Choose a Template for Your New Project sheet (a “sheet” is also known as a “document-modal dialog”). Its purpose in life is pretty clear: It’s there to let you choose a new template for your new project.
Note that the leftmost pane has two sections: one for iOS and the other for OS X (Apple’s latest name for the Macintosh operating system).
In the upper-left corner of the Choose a Template dialog, select Application under the iOS heading (if it isn’t already selected).
After clicking Application, the main pane of the Choose a Template sheet refreshes, revealing several choices (as shown in the figure). Each choice is actually a template that, when chosen, generates code to get you started.
Select Master-Detail Application from the template choices displayed, and then click Next.
After you click Next, the Choose Options for Your New Project sheet appears.
This Master-Detail Application template provides a starting point for the appropriately named Master-Detail application. What you get is a skeleton app with a Split view. A Split view is what you see in the Mail application.
In Landscape orientation on the left is a Master view, and on the right is a Detail view. In Portrait orientation you see the Detail view with a button that enables you to display the Master view in a popover.
Note that when you select a template, a brief description of the template is displayed underneath the main pane. (Again, refer to the figure to see a description of the Master-Detail Application template.)
In fact, go ahead and click some of the other template choices just to see how they’re described as well. Just be sure to click the Master-Detail Application template again when you’re done, and then click Next, to follow along with developing the RoadTrip app.
In the Choose Options for Your New Project sheet (as shown in the figure), enter a name for your new project in the Product Name field, and add a company name (or your name) in the Company Identifier field.