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 回答