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

Adding graphics programmatically

In the previous chapter, you learned how to add a graphic to your scene using the storyboard with drag-and-drop methods. Unfortunately, this will not work if you want to create a graphic from a list of images, duplicate it, and place it in a very specific place on the screen. For that, we need to use code. Let's start building our next app.

Start a new Single View Application project and call it AlienInvaders using the same method we used in the previous chapters. Set your build scheme to iPhone Retina (3.5-inch). A build scheme is a predefined set of targets that we are setting our app to build for. In this case, we are setting our app to target the 3.5 inch Retina iPhone. We can always change these settings in ...

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