Building a User Interface (UI)
To start building a game, you need to begin by creating a new Xcode project for the game, which you do by following these steps:
1. Open Xcode 6 and click Create New Xcode Project.
2. Under the iOS > Application tab, select Single View Application (see Figure 5.1).
Selecting this option starts you off with a class called a view controller. The class links UI events such as button taps to the application logic. For apps that store data, the controller often serves as a link between the user and the model where info is stored.
This paradigm is known as Model–View–Controller ...
Get Learning Swift™ Programming 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.