Instance Method

deleteSavedGamesWithName:completionHandler:

Deletes a specific saved game file.

Declaration

- (void)deleteSavedGamesWithName:(NSString *)name completionHandler:(void (^)(NSError *error))handler;

Parameters

name

A string that identifies the saved game data to be deleted.

handler

A block to be called when the request completes.

The block receives the following parameters:

error

If an error occurred, this parameter holds an error object that explains the error. Otherwise, the value of this parameter is nil, indicating a successful delete.

Discussion

This method deletes saved game files asynchronously.

See Also

Working with Saved Games

- fetchSavedGamesWithCompletionHandler:

Retrieves all available saved games.

- saveGameData:withName:completionHandler:

Saves game data under the specified name.