Any way to programmatically reset leaders?

Since I look at the GKScore and GKLeaderboard documentation, there is no way to reset the ratings submitted by the player to a specific leaderboard in GameCenter. I'm right?

This seems completely inconsistent, as it is possible to achieve reset achievements:

[GKAchievement resetAchievementsWithCompletionHandler:^(NSError *error) { ... }]; 

Any thoughts?

+7
source share
1 answer

You're right. There is no way to reset the Game Center leaderboard category or delete a category after it launches in a real application.

Apple really has a way to achieve reset achievement.

The only work I know about is simply to let the old categories die, attach them to the bottom, change the label associated with the category to something like "High Score (Archived)", and then create a new one and name it " High Score "and sort it at the top. It will give you fresh. But of course, there is still a limit of 25 leader categories - so at some point you are sunk, unless you figure out how to reuse the old ones. (For example, do all your x10 scores so that everyone quickly goes above the old points)

EDIT ... In the latest version, I actually reused the leaderboard category in a recent application update. The initial use of this category was for ratings that were pretty low ... in the low 1000s. New uses for this category will range from 10x to 1000x. Therefore, I knew that any old ratings in this category would be erased during the first two games. Of course, the category identifier cannot change (com.company.app.category), but the description (in English or other) can change. This can be confusing because you are using a category that has the identifier of one thing while saving points for something completely different. But with # define kBlahBlahBlah at @ "com.company.app.blah" you can use any name that makes it easy to keep things straight. Hope this helps.

+5
source

All Articles