Instance Method

player:wantsToQuitMatch:

Indicates that the current player wants to quit the current match.

Declaration

- (void)player:(GKPlayer *)player wantsToQuitMatch:(GKTurnBasedMatch *)match;

Parameters

player

The GKPlayer object containing the current player’s information.

match

The GKTurnBasedMatch object containing the current game data.

Discussion

When this method is called, end the current turn and pass the match to the next player by calling participantQuitInTurnWithOutcome:nextParticipants:turnTimeout:matchData:completionHandler:.

See Also

Handling Match-Related Events

- player:didRequestMatchWithOtherPlayers:

Initiates a match from Game Center with the requested players.

- player:matchEnded:

Called when the match has ended.

- player:didRequestMatchWithPlayers:

Initiates a match from Game Center with the requested players.

Deprecated