Domanda

I'm having a weird issue with sandbox leaderboards on game center. I have two leaderboards with two seperate ID's aka categories. For some reason my first leaderboard button shows the correct leaderboard everytime but the second leaderboard button randomly picks between the two leaderboards. I'm sure my leaderboard categories are the correct name. I use leaderboardCategory and category to make sure ios5 and ios6 are handled correctly. It's almost as if i open one leaderboard than close it and open another quickly it doesn't load the correct leaderboard. Also when this issue happens the leaderboard title says "leaderboard"

PS. does anyone know if its possible to have a GKLeaderBoardViewController that brings your to the leaderboard menu that shows all leaderboards as apposed to a specific leaderboard?

Thanks all.

EXAMPLE:

GKLeaderboardViewController *leaderboardController = [[GKLeaderboardViewController alloc] init];
if (leaderboardController != NULL)
{
    leaderboardController.leaderboardCategory = @"Bounce_2";
    leaderboardController.category = @"Bounce_2";
    leaderboardController.timeScope = GKLeaderboardTimeScopeAllTime;
    leaderboardController.leaderboardDelegate = self;
    [self presentModalViewController: leaderboardController animated: YES];
}
È stato utile?

Soluzione

According to Erik Asmussen who reported the bug to Apple (id: 14206005), it has been fixed in iOS 7 (11A4400f).

The bug occurs when you use a leaderboards group, so you may want not to use one for now.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top