Contents

init(leaderboard:playerScope:)

Creates a view controller that presents a leaderboard with data for the specified players.

Declaration

init(leaderboard: GKLeaderboard, playerScope: GKLeaderboard.PlayerScope)

Parameters

  • leaderboard:

    The identifier for the leaderboard to display.

  • playerScope:

    The type of players to display in the leaderboard.

Return Value

The initialized view controller.

See Also

Configuring Game Center content