Manipulador de convite do GKMatchMaker preterido
Eu tenho o seguinte código que tenho usado antes para manipular convites:
[GKMatchmaker sharedMatchmaker].inviteHandler = ^(GKInvite *acceptedInvite, NSArray *playersToInvite) {
// Insert game-specific code here to clean up any game in progress.
if (acceptedInvite) {
GKMatchmakerViewController *mmvc = [[GKMatchmakerViewController alloc] initWithInvite:acceptedInvite];
mmvc.matchmakerDelegate = self;
[self presentViewController:mmvc animated:YES completion:nil];
}
};
No entanto, agora ele se tornou obsoletoiOS 7
. Onde ecomo faço para registrar um manipulador de convite GameKit no meu projeto?