帮助 !全部,
当“比赛开始!预计球员人数:1”时
但不能调用“didChangeState”
我的代码是:
================================
-(IBAction)play{
GKMatchRequest *request = [[GKMatchRequest alloc]init];
request.minPlayers = min;
request.maxPlayers = max;
mmvc = [[GKMatchmakerViewController alloc]initWithMatchRequest:request];
mmvc.matchmakerDelegate =self;
[self presentModalViewController:mmvc animated:YES];
}
- (void)matchmakerViewController:(GKMatchmakerViewController *)viewController didFindMatch:(GKMatch *)match {
[self dismissModalViewControllerAnimated:YES];
self.myMatch = match;
self.myMatch.delegate = self;
NSLog(@"Match started! Expected Player Count:%d %@",match.expectedPlayerCount, match.playerIDs);
}
- (void)match:(GKMatch *)match player:(NSString *)playerID didChangeState:(GKPlayerConnectionState)state
{ NSLog(@"OK!"); }
=====================
它不能给我“OK!” 但我可以看到“比赛开始!预期玩家人数:1”
你可以帮帮我吗?