Building the user interface
Let's create view controllers for our main UI as we have done in previous chapters using our storyboards and a View Controller class.
The following are the steps to create view controllers using a View Controller class:
- Start by creating a new View Controller class.
- Go to File | New | File… and create a new Objective-C class:
- Call it
GalaxyViewController with Subclass as
- Next, we will drag it into the Resources folder for the Galaxy game. This will include your art and some audio files for the game.
- Make sure ...