【问题标题】:iOS leaderBoard score not updated issue ios?iOS 排行榜分数未更新问题 ios?
【发布时间】:2012-08-04 05:10:37
【问题描述】:

现在我有排行榜任务,因为我已经通过我的沙盒帐户提交了我的分数,但是我的分数在 18 小时后更新,并且有些延迟只有其他人才能看到我的分数....

我已经实现了所有的代表......但我仍然遇到同样的问题......

关于这个的任何想法请分享....

非常感谢您的建议...

提前谢谢....

我的代码块:-

- (void) reportScore: (int64_t) score forCategory: (NSString*) category 
{
    GKScore *scoreReporter = [[GKScore alloc] initWithCategory:category];
    scoreReporter.value = score*50;
    [scoreReporter reportScoreWithCompletionHandler: ^(NSError *error) 
     {
         if (error != nil)
         {
             NSLog(@"reportScore: error!");

        }
        else
        {

                 NSLog(@"reportScore: successful!");
            [self callDelegateOnMainThread: @selector(scoreReported:) withArg: self error: error];
        }

     }];

}

【问题讨论】:

    标签: objective-c ios5 gamekit leaderboard gksession


    【解决方案1】:

    根据我的经验,我注意到在至少有两个分数之前,Game Center 排行榜分数不会显示。 (特别是在 Sandbox 中,但发布后也可能如此)。

    我只在两台不同的设备上使用两个不同的帐户对此进行了测试,但一台设备上的两个帐户也可以工作。

    即便如此,在显示或更新分数之前有时也会有延迟。

    【讨论】:

      猜你喜欢
      • 2014-11-13
      • 2014-11-28
      • 2020-11-10
      • 2023-03-30
      • 1970-01-01
      • 2019-10-22
      • 2015-11-22
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多