Skip to content

Instantly share code, notes, and snippets.

Created January 31, 2013 13:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/4682903 to your computer and use it in GitHub Desktop.
Save anonymous/4682903 to your computer and use it in GitHub Desktop.
#import <UIKit/UIKit.h>
#import <GameKit/GameKit.h>
@interface PGViewController : UIViewController<UIAccelerometerDelegate,GKPeerPickerControllerDelegate,GKSessionDelegate>{
GKSession *currentSession;
int gameUniqueID;
IBOutlet UIImageView *player;
IBOutlet UIButton *connect;
IBOutlet UIButton *disconnect;
IBOutlet UIImageView *one;
IBOutlet UIImageView *two;
IBOutlet UILabel *ones;
IBOutlet UILabel *twos;
IBOutlet UILabel *server;
NSTimer *randomMain;
CGPoint ballPos;
}
@property (retain, nonatomic) GKSession *currentSession;
@property (retain, nonatomic) UIButton *connect;
@property (retain, nonatomic) UIButton *disconnect;
- (IBAction)btnConnect:(id)sender;
- (IBAction)btnDisconnect:(id)sender;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment