Returns an initialized score object for the specified leaderboard and player.
- iOS 8.0+
- macOS 10.10+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 3.0+
Identifies the leaderboard that the score is being sent to.
GKPlayerobject identifying the player who’s score is being initialized.
An initialized score object, or
nil if an error occurred.
Your game explicitly allocates and initializes a score object using the designated player and current date when it needs to report a new score to Game Center.