Contents

init(category:)

Returns an initialized score object.

Declaration

init(category: String?)

Parameters

  • category:

    An identifier for a specific leaderboard you’ve configured in App Store Connect. Must not be nil.

Return Value

An initialized score object, or nil if an error occurred.

Discussion

Your game explicitly allocates and initializes a score object when it needs to report a new score to Game Center.

See Also

Deprecated Methods and Properties