Instance Property

date

The date and time when the score was earned.

Declaration

iOS, Mac Catalyst, tvOS, watchOS
@property(readonly, retain, nonatomic) NSDate *date;
macOS
@property(readonly, retain, atomic) NSDate *date;

Discussion

When you initialize the new score object, the date property is automatically set to the current date and time.

See Also

Score Properties

context

An integer value used by your game.

formattedValue

Returns the player’s score as a localized string.

leaderboardIdentifier

The identifier for the leaderboard.

player

The player identifier for the player that earned the score.

rank

The position of the score in the results of a leaderboard search.

value

The score earned by the player.