ヘルプ !全て、
「試合開始!予想プレイヤー数: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!」を与えることはできません。しかし、「Match started! Expected Player Count:1」と表示されます
私たちを手伝ってくれますか?