How do I identify if multi-player game is initiated by automatch or by inviting a friend ?
I have got this method called when the match starts:
- (void)matchmakerViewController:(GKMatchmakerViewController *)viewController didFindMatch:(GKMatch *)theMatch {
[presentingViewController dismissModalViewControllerAnimated:YES];
self.match = theMatch;
match.delegate = self;
if (!matchStarted && match.expectedPlayerCount == 0) {
NSLog(@"Ready to start match!");
[self lookupPlayers];
}
}
Basically i want this(please check this link) - how to sync data in multiplayer game(game-center ios)