Obsługa zaproszeń GKMatchMaker przestała być aktualna

Mam następujący kod, którego używam wcześniej do obsługi zaproszeń:

[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];
    }
};

Jednak teraz stał się przestarzałyiOS 7. Gdzie iw jaki sposób mam zarejestrować program zapraszający GameKit w moim projekcie?

questionAnswers(4)

yourAnswerToTheQuestion