Chapter 3. Using Xcode 4
This chapter covers
Now that you have Xcode and the iOS SDK installed, and you’ve learned a bit about the puzzle pieces needed to build an application, you’re ready to write your first HelloWorld application. The main purpose of this chapter is to show you the new features in Xcode 4 and how Xcode works. Using a traditional HelloWorld application, we’ll look at the parts of a standard application, and you’ll learn how to build and run your first iOS application. Then we’ll look at how Interface Builder works under Xcode 4. And last, you’ll create the AppleStock application, which shows how to create new objects, manipulate them graphically, and use the inspector window.
At the time of this writing, Xcode 4 is a brand-new release to iOS developers. With a new user interface, Xcode 4 also includes a lot more changes under the hood. Let’s first look at the new features in Xcode 4.
When Xcode 4 was first introduced at Apple’s WWDC 2010, developers were excited and looked forward to the new features in Xcode 4. Compared to Xcode 3, Xcode 4 is more powerful, more tightly integrated, easier to use, and great for organizing your projects.
Note that you can have both Xcode 4 and Xcode 3 installed on your Mac at the same time, and the existing project will be fully compatible in Xcode 4.