Saves game data under the specified name.
- iOS 8.0+
- macOS 10.10+
- Mac Catalyst 13.0+
An object that contains the saved game data.
A string that identifies the saved game data.
A block to be called when the request completes.
The block receives the following parameters:
GKSavedobject containing saved game information for the saved data.
If an error occurred, this parameter holds an error object that explains the error. Otherwise, the value of this parameter is
This method saves game data asynchronously. When a game is saved, if there is already a saved game with the same name, the new saved game data overwrites the old saved game data. If there is no saved game with the same name, a new saved game is created.