Instance Property

playerID

The player identifier for the player that earned the score.

Declaration

iOS, Mac Catalyst, watchOS
@property(readonly, retain, nonatomic) NSString *playerID;
macOS
@property(readonly, retain, atomic) NSString *playerID;

Discussion

When you initialize a new score object, the playerID property is set to the identifier for the local player. If the score object was returned to your game by loading scores from Game Center, the playerID property identifies the player who recorded that score.

See Also

Deprecated Methods and Properties

category

The leaderboard that this score belongs to.

Deprecated
- challengeComposeControllerWithPlayers:message:completionHandler:

Provides a challenge compose view controller with pre-selected player identifiers and a preformatted, player-editable message.

Deprecated
- initWithCategory:

Returns an initialized score object.

Deprecated
- initWithLeaderboardIdentifier:forPlayer:

Returns an initialized score object for the specified leaderboard and player.

Deprecated
- issueChallengeToPlayers:message:

Issues a score challenge to a set of players.

Deprecated
- reportScoreWithCompletionHandler:

Reports a score to Game Center.

Deprecated