Reports a score to Game Center.
- iOS 4.1–7.0Deprecated
- macOS 10.8–10.10Deprecated
- Mac Catalyst 13.0–13.0Deprecated
- watchOS 2.0–2.0Deprecated
A block to be called after the score is reported.
The block receives the following parameter:
If an error occurred, this parameter holds an error object that describes the problem. If the score was successfully reported, this parameter’s value is
value property must be set before calling this method.
When this method is called, it creates a new background task to handle the request. The method then returns control to your game. Later, when the task is complete, GameKit calls your completion handler. The completion handler is always called on the main thread.