O'Reilly logo

Learning Objective-C by Developing iPhone Games by Amy M. Booker, Joseph D. Walters

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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:

  1. Start by creating a new View Controller class.
  2. Go to File | New | File… and create a new Objective-C class:
    Building the user interface
  3. Call it GalaxyViewController with Subclass as UIViewController:
    Building the user interface
  4. 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.
  5. Make sure ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required