Initializer

init(matchRequest:)

Initializes a matchmaker view controller to create a new match.

Declaration

init?(matchRequest request: GKMatchRequest)

Parameters

request

A request containing the characteristics for the desired match.

Return Value

An initialized matchmaker view controller object. If an error occurred, NULL is returned.

Discussion

Your game uses the initWithMatchRequest: method when it wants the local user to create a new match.

See Also

Initializing a Matchmaker View Controller

init?(invite: GKInvite)

Initializes a matchmaker view controller to respond to an invitation received from another player.