【正文】
enables you to do it in a fashion best suited for iOS projects. Let’s look into the details of getting, installing, and being familiar with Xcode, and then you’ll develop your first app. Using Xcode As stated in the previous section, Xcode is the primary development tool for iOS this section, we look at how to get Xcode from Apple and tour the various parts of Xcode to simplify iOS development. Getting Xcode Using the App Store from Apple, you can search for Xcode and quickly find it. It’s free, so just click on the FREE button to begin the install (see figure ). It’s a large download and might take a while, but the download process is pretty and related apps will then be installed in /Developer/Applications and key apps will be added to the Developer folder in Launchpad. You may also go to and download Xcode if you’d like to go the more manual route. There you’ll also see information about joining the various developer programs such as Safari, iOS, and Mac. In most cases, the developer programs cost money to join, but they also allow access to advance/beta releases, developer forums, and other resources. If you intend to do much iOS development, I highly remend joining. If you intend to release any apps, you have to join. Now that you have Xcode installed, let’s look at the various aspects of it. Tour of Xcode Xcode can handle all of the major aspects of project development for iOS projects. It can manage the anization of code, linking frameworks, UI design, editing, projects (such as regular and pro versions of the same code base for separate apps), building, testing, and submission to Apple for review. In this chapter, we look at some of the basics to get started with Xcode. In later chapters, we explore more details and areas of Xcode. Given that Xcode helps in so many ways, it makes sense that there are a lot of areas, panes, views, and such included in it. The Navigator on the left displays the various files, frameworks, projects, and related items included in your project (see figure ). This allows you to select files to edit or control in various ways. The Utilities area, displayed by the right button above View. The Utilities area, displayed by the right button above Viewon the top right, shows various aspects and settings of a selected item such as a file (see figure ).Here you can see how a given item relates to other items, set various attributes, and more. This is particularly helpful when using the Interface Builder (IB) UI editor to set attributes on visual items. The Editor is probably the most familiarlooking item in Xcode because all development needs a way to edit code (see figure ). But the Editor serves as the editor not only for code, but also the UI and data (such as database design for CoreData), which you’ll see throughout the projects in this book. The Debug area displays at the bottom and can be split to display the Console on the right for viewing standard output (see figure ). Both of these can be helpful for displaying variable values and output during testing. The Toolbar is located at the top of the window and is helpful for displaying various areas, starting/stopping test runs, and selecting what scheme to use for building (see figure ). The Organizer, which is displayed in the Window menu, is used for a variety of aspects of dev