Initializer

init(matchRequest:)

Initializes a new matchmaker view controller.

Declaration

init(matchRequest request: GKMatchRequest)

Parameters

request

A match request with parameters for the match.

Return Value

An initialized matchmaker view controller. If an error occurred, this method returns NIL.

See Also

Displaying a UI For Turn-Based Matches

var showExistingMatches: Bool

A Boolean value that determines whether the view controller shows existing matches.

protocol GKTurnBasedMatchmakerViewControllerDelegate

Your game implements the GKTurnBasedMatchmakerViewControllerDelegate protocol on an object to respond to events generated by a GKTurnBasedMatchmakerViewController object.