Appendix A. Appendix

PongViewController.h interface listing

// // PongViewController.h // // #import <UIKit/UIKit.h> #include <AudioToolbox/AudioToolbox.h> @interface pongViewController : UIViewController { // // Define the outlets that will be updated // as the game progresses // IBOutlet UIImageView *ball; IBOutlet UIImageView *playerPaddle; IBOutlet UIImageView *compPaddle; IBOutlet UILabel *playerScoreView; IBOutlet UILabel *compScoreView; IBOutlet UILabel *winOrLoseView; //****************************************************** // // GENERAL NOTES ON THE PROPERTIES AND METHODS BELOW // // Most, if not all, of the stuff below could be // defined as simple instance variables within the // the pongViewController and does not need to be // defined ...

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.