Class

GKScoreChallenge

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

Declaration

class GKScoreChallenge : GKChallenge

Overview

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.

Topics

Obtaining the Score to Beat

var score: GKScore?

The score to beat.

Relationships

Inherits From

Conforms To

See Also

Challenges

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