Game Center排行榜沙箱中仅显示一个结果-正常吗? [英] Only one result showing in Game Center leaderboard sandbox - normal?

查看:105
本文介绍了Game Center排行榜沙箱中仅显示一个结果-正常吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在沙盒模式下将结果显示在排行榜中,但是我希望每个结果都会出现.仅显示一个结果.那是正常的吗?从最高到最低排序的排序选项似乎暗示应该显示多个结果.显示的是我的高分,如果超过该分数,它会更新.

I'm getting results to show in the leaderboard in sandbox mode, but I expected each result to appear. Only one result is showing. Is that normal? The sort option to sort from highest to lowest seems to imply multiple results should show up. What does show up is my high score, which does update if the score is surpassed.

只有一个结果表明我是否以此方式出示了VC:

Only one result shows whether I present a VC thus:

- (void) presentLeaderboards {
   GKGameCenterViewController* gameCenterController = [[GKGameCenterViewController alloc] init];
   gameCenterController.viewState = GKGameCenterViewControllerStateLeaderboards;
   gameCenterController.gameCenterDelegate = self;
   [self presentViewController:gameCenterController];
}

或者如果我使用Game Center应用程序.

or if I use the Game Center app.

这是我提交分数的方式:

Here is how I am submitting scores:

-(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) {
         // handle error
      }
   }];
}

推荐答案

  1. 从最高到最低排序的排序选项似乎暗示应该显示多个结果"

  1. "The sort option to sort from highest to lowest seems to imply multiple results should show up"

  • 这并不意味着.这意味着所有提交的分数(按所有玩家)将按照从最高到最低或从最低到最高的顺序进行排序.

因为您已经在iTunes Connect的排行榜设置中选择了高分".仅当玩家的分数高于上一个分数时,它才会更新,并且不会保存其他已提交的分数.

Since you have selected High Score in Leaderboard setup on iTunes Connect. It will update player's score only if it is higher than previous one and will not save other scores submitted.

这篇关于Game Center排行榜沙箱中仅显示一个结果-正常吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆