O'Reilly logo

Building iPhone OS Accessories: Use the iPhone Accessories API to Control and Monitor Devices by Ken Maskrey

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

Chapter 6. Coding a Pong Game

You've designed and built your game controller and specified the basic operation of the Pong game. You know what the screens will look like and it's now time to start writing the application.

But hold on. Like me, you've probably been guilty of reading a book or an article on the web that described a cool iPhone program and, before you took the time to understand what was going on, you fired up Xcode and got it running on the simulator. I want to take the first part of this chapter to discuss what's going on under the hood when you write iPhone programs.

Architecture

The first thing you need to do before you open up Xcode is define the basic structure of the program. This is where those design patterns I talked about ...

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