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 ...

Get Building iPhone OS Accessories: Use the iPhone Accessories API to Control and Monitor Devices 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.