Game Development Reference
the following example code in the IsoTilemap04 project.
One of your game's classes can then use this functionality and register itself as a
GameKitHelper delegate to get notified of events as they occur. To do that, the del-
egate must implement the GameKitHelper @protocol that's defined in the
tocol can be assigned to the GameKitHelper delegate property to receive the
protocol messages. The protocol is simply a list of method definitions that a class using
the protocol must implement. If any of the methods in the protocol aren't implemented,
the compiler will let you know about that.
#import < GameKit/GameKit.h>
@protocol GameKitHelperProtocol < NSObject>
@interface GameKitHelper : NSObject < GKLeaderboardViewControllerDelegate, ←
id < GameKitHelperProtocol > delegate;
@property (nonatomic, retain) id < GameKitHelperProtocol > delegate;
@property (nonatomic, readonly) BOOL isGameCenterAvailable;
@property (nonatomic, readonly) NSError* lastError;