I have submitted a code-level support request, though I it's hard to imagine what I could be doing wrong in calling up the MatchMaker ViewController:
GKLocalPlayer *localPlayer = [GKLocalPlayer localPlayer];
if (!localPlayer.isAuthenticated) {
[self matchError];
return;
}
GKMatchRequest *request = [[GKMatchRequest alloc] init];
request.minPlayers = 2;
request.maxPlayers = 2;
// Configure other request properties as needed
GKTurnBasedMatchmakerViewController *mmvc = [[GKTurnBasedMatchmakerViewController alloc] initWithMatchRequest:request];
mmvc.turnBasedMatchmakerDelegate = self; // Assuming self conforms to GKTurnBasedMatchmakerViewControllerDelegate
mmvc.showExistingMatches = YES; // should be default, but maybe Jamie's problem?
[self presentViewController:mmvc animated:YES completion:^{
// Code to run after the presentation completes (if any)
NSLog(@"Presented GKTurnBasedMatchmakerViewController");
}];
}
Topic:
Graphics & Games
SubTopic:
GameKit