我花了几个小时尝试调试这个,所以我想我应该在这里发帖,也许可以帮助一些人解决这个问题!
GKMatchRequest *matchRequest = [[GKMatchRequest alloc] init];
matchRequest.minPlayers = 2;
matchRequest.maxPlayers = 2;
GKMatchmakerViewController *controller = [[GKMatchmakerViewController alloc] initWithMatchRequest:matchRequest];
controller.delegate = self;
最佳答案
解决方案是我忽略了 Controller 委托(delegate)不是要设置的正确委托(delegate)这一事实!使用 matchmakerDelegate,一切都会好起来的!
controller.matchmakerDelegate = self;
关于ios - 未调用 GKMatchmakerViewController 委托(delegate)方法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17264648/