Skip to content

Instantly share code, notes, and snippets.

@McZonk
Created February 12, 2014 21:41
Show Gist options
  • Save McZonk/8965108 to your computer and use it in GitHub Desktop.
Save McZonk/8965108 to your computer and use it in GitHub Desktop.
Fix the missing declaration of the GKLeaderboard identifier on OS X 10.9.
#import <Foundation/Foundation.h>
#import <GameKit/GameKit.h>
@interface GKLeaderboard (IdentifierSupport)
@property (copy, readonly) NSString *identifier;
@end
int main(int argc, const char * argv[])
{
@autoreleasepool
{
GKLeaderboard *leaderboard = [[GKLeaderboard alloc] init];
leaderboard.category = @"1234";
NSLog(@"category :%@", leaderboard.category);
NSLog(@"identifier :%@", leaderboard.category);
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment