Adding the Image and Sound Resources and an Application Icon

If you select the Home button — either on the Simulator or the iPad itself — you can’t help but notice that the icon assigned to your fledgling app is rather undistinguished looking, to say the least.

Even though your app doesn’t do anything yet, you can have a nice, shiny app icon by following these steps:

1. Download the iPad 3E RoadTrip Resources folder from my website at nealgoldstein.com/support/downloads .

Store the folder somewhere handy where you’ll be sure to find it again.

remember.eps This folder includes not only the application icon but also a number of other resource files (images and sound) you’ll be using in your application.

You’ll start by adding the resources you’ll need.

2. Control-click RoadTrip project in the Project Navigator, choose Add Files to “RoadTrip”… from the contextual menu, use the dialog that appears to navigate to the RoadTrip Resources folder you downloaded, and then select the RoadTrip Resources folder. Or choose FileAdd Files to RoadTrip, as shown in Figure 3-14.

Xcode asks you (via a check box in the aforementioned dialog) whether you want to make a copy of the file. If you don’t select the check box, Xcode creates a pointer (alias) to the file. The advantage of using an alias is that if you modify the file later, Xcode will use that modified version. The disadvantage is that Xcode won’t ...

Get iPad Application Development For Dummies, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.