Messing Around in a Playground

We’ll start getting a feel for programming for iOS in what Xcode calls a playground, so click the “Get started with a playground” button. This brings up a new window, with a sheet showing two options for the playground: a name (defaulting to My Playground) and a platform. Make sure the platform is set to iOS, accept the default name, and click Next. Now we have to choose a destination folder to store the playground file. Anything will do here—Desktop, Documents, whatever—so pick something and click Create.

This brings up a window like the following, with a toolbar and status pane at top, a source editor on the left, an empty pane on the right, and a time slider at the bottom that says “30 sec.” For a moment, the ...

Get iOS 9 SDK Development 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.