title: "A GKScore must specify a leaderboard."
body: <p>Has anyone come across this error when trying to integrate Game Center into an iOS 7 App?</p>
  
  <blockquote>
    <p>A GKScore must specify a leaderboard.</p>
  </blockquote>
  
  <p>Here is the code where it fails:</p>
  
  <pre><code>if(points &gt; 0)
  {
      //Fails on the next line
      [self.gameCenterManager reportScore:points forCategory:self.currentLeaderBoard];
  }
  GKLeaderboardViewController *leaderboardController = [[GKLeaderboardViewController alloc] init];
  if (leaderboardController != NULL) {
      leaderboardController.category = self.currentLeaderBoard;
      leaderboardController.timeScope = GKLeaderboardTimeScopeWeek; 
      leaderboardController.leaderboardDelegate = self;
      [self presentViewController:leaderboardController animated:YES completion:nil];
  }
  </code></pre>
  
  <p><strong>UPDATE</strong> I have tried another method and still get the same error.</p>
  
  <p>Other Method:</p>
  
  <pre><code>GKScore *scoreReporter = [[GKScore alloc] initWithCategory:self.currentLeaderBoard];
  scoreReporter.value = points;
  
  [scoreReporter reportScoreWithCompletionHandler:^(NSError *error) {
      if (error != nil)
      {
          [self showAlert:@"Game Center Error" theMessage:@"There was a problem uploading your score to Game Center, if this problem persists, please contact JApp Design." alertTag:0];
      }
  }];
  </code></pre>
  
  <p>Any ideas?</p>