2
LEARNING TO CODE IN A PLAYGROUND
A “Hello, world!” app is no small accomplishment, but now it’s time to really learn how to write some code. Xcode provides a special type of document called a playground, which is a great place to learn how to program. In a playground, you can write and run code immediately to see the results, without going through the trouble of writing a whole app, as we did in Chapter 1.
Let’s open a playground. Open Xcode and select Get started with a playground, as shown in the Welcome to Xcode dialog in Figure 2-1. If this window doesn’t automatically open, select Welcome to Xcode from the Window option in the menu or press ...
Get Coding iPhone Apps for Kids, 1st 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.