I get results that appear in the leaderboard in sandbox mode, but I expected every result to appear. Only one result is shown. This is normal? Sorting the sort from highest to lowest seems to imply multiple results. What appears is my high score, which is updated if the score is exceeded.
Only one result shows if I represent VC in this way:
- (void) presentLeaderboards { GKGameCenterViewController* gameCenterController = [[GKGameCenterViewController alloc] init]; gameCenterController.viewState = GKGameCenterViewControllerStateLeaderboards; gameCenterController.gameCenterDelegate = self; [self presentViewController:gameCenterController]; }
or if I use the Game Center app.
This is how I present the results:
-(void) submitScore:(int64_t)score category:(NSString*)category { if (!_gameCenterFeaturesEnabled) { DLog(@"Player not authenticated"); return; } GKScore* gkScore = [[GKScore alloc] initWithLeaderboardIdentifier:category]; gkScore.value = score; [GKScore reportScores:@[gkScore] withCompletionHandler:^(NSError *error) { if (error) {
Victor engel
source share