Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
GKScore gkScore = GKScore.alloc();
gkScore = gkScore.initWithLeaderboardIdentifier("my.identifier");
NSArray<GKScore> nsArray = (NSArray<GKScore>) NSArray.arrayWithObject(gkScore);
GKScore.reportScoresWithCompletionHandler(nsArray, new GKScore.Block_reportScoresWithCompletionHandler() {
public void call_reportScoresWithCompletionHandler(NSError nsError) {
if (nsError != null) {
//submitted score not successfully
} else {
//submitted score successfully
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment