GKScoreChallenge Class Reference

Inherits from
Conforms to
Framework
/System/Library/Frameworks/GameKit.framework
Availability
Available in iOS 6.0 and later.
Companion guide
Declared in
GKChallenge.h

Overview

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.

Tasks

Obtaining the Score to Beat

Properties

score

The score to beat. (read-only)

@property(nonatomic, readonly, retain) GKScore *score
Availability
  • Available in iOS 6.0 and later.
Declared In
GKChallenge.h