Mac Developer Library

Developer

GameKit Framework Reference GKScoreChallenge Class Reference

Options
Deployment Target:

On This Page
Language:

GKScoreChallenge

A GKScoreChallenge object represents a challenge based on a score in a leaderboard. 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.

Inheritance


Import Statement


Swift

import GameKit

Objective-C

@import GameKit;

Availability


Available in OS X v10.8 and later.
  • score score Property

    The score to beat. (read-only)

    Declaration

    Swift

    var score: GKScore! { get }

    Objective-C

    @property(nonatomic, readonly, retain) GKScore *score

    Import Statement

    Objective-C

    @import GameKit;

    Swift

    import GameKit

    Availability

    Available in OS X v10.8 and later.