Instance Property


The numerical score rankings to return from the search.


var range: NSRange { get set }


The range property is ignored if the leaderboard request was initialized using the init(playerIDs:) method. Otherwise, the range property is used to filter which scores are returned to your game. For example, if you specified a range of [1,10], after the search is complete, your game receives the best ten scores. The default range is [1,25].

The minimum index is 1. The maximum length is 100.

See Also

Customizing the Leaderboard Request

var playerScope: GKLeaderboard.PlayerScope

A filter used to restrict the search to a subset of the players on Game Center.

enum GKLeaderboard.PlayerScope

The scope of players to be searched for scores.

var timeScope: GKLeaderboard.TimeScope

A filter used to restrict the search to scores that were posted within a specific period of time.

enum GKLeaderboard.TimeScope

The period of time to which a player’s best score is restricted.

var identifier: String?

The named leaderboard to retrieve information from.

func loadImage(completionHandler: ((UIImage?, Error?) -> Void)?)

The image associated with the default leaderboard.