0

私はこれをデバッグするのに何時間も費やしたので、おそらく誰かの頭痛の種を救うためにここに投稿すると思いました!

GKMatchRequest *matchRequest = [[GKMatchRequest alloc] init];
matchRequest.minPlayers = 2;
matchRequest.maxPlayers = 2;
GKMatchmakerViewController *controller = [[GKMatchmakerViewController alloc] initWithMatchRequest:matchRequest];
controller.delegate = self;
4

1 に答える 1

2

解決策は、コントローラーのデリゲートが設定する正しいデリゲートではないという事実を見逃していたことです! matchmakerDelegate を使用すると、すべてがうまくいきます!

controller.matchmakerDelegate = self;
于 2013-06-23T19:49:38.493 に答える