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

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

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