title: Game Center In SpriteKit Not Dismissing Leader Board
body: <p>After a lot of searching on here I finally found a way for Game Center to display in SpriteKit but now I can't get the <code>leaderboardViewControllerDidFinish</code> method to call. I use this code in a different app and it works fine but for some reason with the code being modified for SpriteKit its just not working. Thank you in advance!</p>
  
  <p>Here is a sample of my code:</p>
  
  <pre><code>- (void)showGameCenterButtonPressed:(id)sender {
  {
      if ([GKLocalPlayer localPlayer].authenticated == NO) {
          UIAlertView *message = [[UIAlertView alloc] initWithTitle:@"You must enable Game Center!"
                                                            message:@"Sign in through the Game Center app to enable all features"
                                                           delegate:nil
                                                  cancelButtonTitle:@"OK"
                                                  otherButtonTitles:nil];
          [message show];
      } else {
          GKGameCenterViewController *leaderboardViewController = [[GKGameCenterViewController alloc] init];
          if (leaderboardViewController != NULL)
          {
  
              UIViewController *vc = self.view.window.rootViewController;
              [vc presentViewController: leaderboardViewController animated: YES completion:nil];
          }
      }
  </code></pre>
  
  <p>}
  }</p>
  
  <pre><code>- (void)leaderboardViewControllerDidFinish:(GKGameCenterViewController *)viewController {
  NSLog(@"in leaderboardControllerDidFinish");
  UIViewController *vc = self.view.window.rootViewController;
  [vc dismissViewControllerAnimated:YES completion:nil];
  
  }
  </code></pre>