Instance Method

loadDataWithCompletionHandler:

Retrieves the game data from the current game session.

Declaration

- (void)loadDataWithCompletionHandler:(void (^)(NSData *data, NSError *error))completionHandler;

Parameters

completionHandler

A block that is called after the game session data has been loaded.

data

A Data object containing the app's saved data.

error

If an error occurred, this parameter holds an error object that explains the error. Otherwise, the value of this parameter is nil. See GameKit Constants for a list of error codes specific to GameKit.

See Also

Saving and Loading Data

- saveData:completionHandler:

Saves the current game session data.

Deprecated