setScore(on:to:)
Set a score of a leaderboard for a player.
Declaration
func setScore(on leaderboard: GKLeaderboard, to score: Int)Discussion
The framewowrk submits the score to the leaderboard when the activity ends.
Set a score of a leaderboard for a player.
func setScore(on leaderboard: GKLeaderboard, to score: Int)The framewowrk submits the score to the leaderboard when the activity ends.