【发布时间】:2013-06-03 10:14:48
【问题描述】:
使用沙盒游戏中心。
无论我做什么,分数都不会出现在排行榜中。
我正在使用以下代码:
- (void)scoreReported: (NSError*) error {
NSLog(@"%@",[error localizedDescription]);
}
- (void)submitScore{
if(self.currentScore > 0)
{
NSLog(@"Score: %lli submitted to leaderboard %@", self.currentScore, self.currentLeaderBoard);
[gameCenterManager reportScore: self.currentScore forCategory: self.currentLeaderBoard];
}
}
并且 scoreReported 不会产生错误,但分数不会出现在排行榜中。我知道类别是正确的,因为我在以下位置使用 currentLeaderBoard:
- (void)showLeaderboard {
NSLog(@"leaderboard = %@", self.currentLeaderBoard);
GKLeaderboardViewController *leaderboardController = [[GKLeaderboardViewController alloc] init];
if (leaderboardController != NULL)
{
leaderboardController.category = self.currentLeaderBoard;
//leaderboardController.category = nil;
leaderboardController.timeScope = GKLeaderboardTimeScopeWeek;
leaderboardController.leaderboardDelegate = self;
[self presentModalViewController: leaderboardController animated: YES];
}
}
我已经尝试了通常的方法 2 个不同的沙盒 GC 帐户,让排行榜工作 甚至尝试了 4 个不同的 GC 帐户,每个帐户都在模拟器(iOS 6.1)和设备(iOS 6.0.1)上登录 还是不开心
任何建议 - 或者仅仅是沙盒游戏中心的问题太多了!!! (我会提出一个关于沙盒的错误,但苹果错误报告表单中有一个错误,因此也不起作用)
【问题讨论】:
-
您在将分数发布到排行榜后等待了多长时间?
-
从 2 分钟到 16 小时不等
标签: ios game-center leaderboard