An object that organizes leaderboards into logical and coherent groups.
- iOS 7.0+
- macOS 10.10+
- tvOS 7.0+
- watchOS 3.0+
GKLeaderboardSet object is used to read data from a leaderboard set stored on Game Center. Your game uses
GKLeaderboardSet objects when it wants to retrieve localized information about a specific leaderboard set or to retrieve scores from a leaderboard set. Typically, you do this when you want the data needed to implement your own custom leaderboard set user interface.
After incorporating leaderboard sets into your app, you must put all of your leaderboards into a set. Individual leaderboards can be put into multiple leaderboard sets and given different display names in each set.
During the development process, you create the leaderboard sets for your game on iTunes Connect.
To retrieve information about the available leaderboards for the current set, use the
loadLeaderboards(completionHandler:) class method.
To retrieve information about the available leaderboard sets, use the
loadLeaderboardSets(completionHandler:) class method.
To retrieve information about the image associated with a leaderboard set, use the
loadImage(completionHandler:) class method.