title: iOS 7: How to setup invitation handler for Game Center matchmaker
body: <p>What is the proper way to handle invitations from other players in iOS 7?</p>
  
  <p>After my view did load on my root View Controller, I'm calling a game center authentication method, after that I'm setup a invitation handler like so:</p>
  
  <pre><code>[[GKLocalPlayer localPlayer] registerListener:self];
  </code></pre>
  
  <p>My view controller adopt <code>GKLocalPlayerListener</code> and <code>GKInviteEventListener</code> protocols, by the way, what is the best place to register a listener AppDelegate? Maybe or maybe my custom Game Center singleton?</p>
  
  <p>I add a method described in <code>GKInviteEventListener</code></p>
  
  <pre><code>-(void)player:(GKPlayer *)player didAcceptInvite:(GKInvite *)invite
  {
      NSLog(@"Invite accepted!");
      GKMatchmakerViewController *mmvc = [[GKMatchmakerViewController alloc] initWithInvite:invite];
      mmvc.matchmakerDelegate = self;
      [self presentViewController:mmvc animated:YES completion:nil];
  
  }
  </code></pre>
  
  <p>But, game center matchmaker class have such topic: Receiving Invitations From Other Players and method <code>– matchForInvite:completionHandler:</code>
  I don't understand how to use it.</p>
  
  <p>So, what I must use and how?</p>