Tag: 排行榜

游戏中心领导委员会错误

我为游戏中心排行榜创build了这个代码,而且我总是得到Thread 1 signal Sigabrt 。 NSLOG总是这样说的: 2014-04-15 15:27:28.441 GameCenter[38225:60b] -[GKGameCenterViewController setLeaderboardDelegate:]: unrecognized selector sent to instance 0xb48dd90 2014-04-15 15:27:28.442 GameCenter[38225:60b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[GKGameCenterViewController setLeaderboardDelegate:]: unrecognized selector sent to instance 0xb48dd90' *** First throw call stack: 在我实现排行榜的代码截图下面: 或/请在这里看看这个问题: https : //stackoverflow.com/questions/23068184/game-center-leaderboard-doesnt-work-in-xcode

在Game Center排行榜沙盒中只显示一个结果 – 正常吗?

我得到的结果显示在沙箱模式的排行榜,但我期望每个结果出现。 只有一个结果显示。 这是正常的吗? 从最高到最低sorting的sorting选项似乎意味着应该显示多个结果。 什么显示是我的高分,如果超过分数则更新。 只有一个结果显示我是否提出了一个VC: – (void) presentLeaderboards { GKGameCenterViewController* gameCenterController = [[GKGameCenterViewController alloc] init]; gameCenterController.viewState = GKGameCenterViewControllerStateLeaderboards; gameCenterController.gameCenterDelegate = self; [self presentViewController:gameCenterController]; } 或者如果我使用Game Center应用程序。 以下是我如何提交分数: -(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 […]

GKLeaderboardViewController初始排行榜

当呈现GKLeaderboardViewController ,即使没有设置GKLeaderboardViewController的排行榜类别,也会显示列表中的第一个排行榜。 要查看所有排行榜的列表,只需点击顶部的排行榜button。 GKLeaderboardViewController提供时,有没有办法显示所有排行榜的列表?

GameCenter不更新排行榜

使用沙盒Gamecenter。 无论我做什么,分数都不会出现在排行榜上。 我正在使用下面的代码: – (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; […]

如何清除实时游戏中心排行榜数据?

是否可以清除现场游戏中心排行榜(而不是沙箱之一)的数据? 如果不能清除,有没有办法隐藏排行榜显示? 谢谢。

有可能有一个游戏中心“LowestScore”排行榜?

我已经读过,Game Center排行榜分数只有在新发布的分数大于已有分数时才会更新 。 这让我想知道是否有可能存在一个存储分数倒数的游戏中心排行榜,例如“完成时间的水平”。 这是否仍然可以通过排行榜的正确设置来实现,例如sorting和格式化修饰符? 而只是为了确认,是否真的不可能有一个游戏中心排行榜只是接受你发送给它的价值,无论是更大还是更小?