Skip to content

Instantly share code, notes, and snippets.

@kevinvanderlugt
Last active August 29, 2015 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kevinvanderlugt/701c1a0c4caa73a147c5 to your computer and use it in GitHub Desktop.
Save kevinvanderlugt/701c1a0c4caa73a147c5 to your computer and use it in GitHub Desktop.
Fixing so that GameCenter wont cause a rejection if not using gamecenter
// In MenuViewController.m replace
[[GameCenterManager sharedManager] authenticateLocalPlayer];
// With
if(kImplementGameCenter)
{
[[GameCenterManager sharedManager] authenticateLocalPlayer];
}
self.leaderboardButton.hidden = !kImplementGameCenter;
// Also remove the Game Center from the projects "Capabilities" section
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment