Chapter 1. Your first iOS application

 

This chapter covers

  • Exploring the iOS SDK
  • Creating a project in Xcode
  • Exploring the Xcode interface
  • Using Interface Builder and storyboards
  • Running your app

In this chapter, you’ll take your first look at Xcode, Apple’s software for building iOS apps. You’ll also build a basic first app, launch it on the iOS simulator, and then take a sneak peek at an app you’ll build throughout this book.

1.1. Exploring iOS SDK

An app wouldn’t be much use without access to the device. Storing files, playing sounds, displaying information on the screen, receiving touch events from the user—it’s all achieved via the iOS SDK. Your app never directly accesses the hardware; instead, the iOS SDK provides abstraction layers for apps to access the underlying hardware.

Figure 1.1 shows the abstraction layers of the iOS SDK, from the higher-level services and features to the lowest-level interfaces. Table 1.1 has more details about what’s contained in each layer.

Figure 1.1. iOS abstraction layers

1.2. Creating an Xcode project

1.3. Exploring the Xcode interface

1.4. Editing your app’s interface

1.5. Running your app

1.6. Peeking at a completed app

1.7. Summary

sitemap