objective c - Leaderboard scores are not showing up in Game Center -
i have created single leaderboard app. shows in game center, score never submitted.
i submitted test score code:
gkscore* gkscore; // set score value gkscore.value = gametimer; // send score game center [gkscore reportscorewithcompletionhandler:^(nserror* error) {}];
this function use submit scores works me
- (void) reportscore: (int64_t) reportscore forleaderboardid: (nsstring*) identifier { gkscore *scorereporter = [[gkscore alloc] initwithleaderboardidentifier: identifier]; scorereporter.value = reportscore; scorereporter.context = 0; nsarray *scores = @[scorereporter]; [gkscore reportscores:scores withcompletionhandler:nil]; }
also, make sure leaderboard either live or added new version submission. itunesconnect > app > view details of new version > game center add new leaderboard if hasn't been added already.
Comments
Post a Comment