Created
February 12, 2014 21:41
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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