An object representing a challenge based on a score in a leaderboard.


class GKScoreChallenge : GKChallenge


To complete the challenge, the player must score an equal or better score than the score used to create the challenge. When a player beats a score challenge, a new score challenge is automatically issued to the player that issued the challenge unless there is already a pending score challenge that requires a better score.


Obtaining the Score to Beat

var score: GKScore?

The score to beat.


Inherits From

Conforms To

See Also


class GKChallenge

An object representing a challenge issued by the local player to another player.

class GKAchievementChallenge

A challenge sent to another player urging them to complete a specific achievement.

protocol GKChallengeListener

An object that responds to challenge events.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software