Last active
August 29, 2015 14:06
-
-
Save kevinvanderlugt/701c1a0c4caa73a147c5 to your computer and use it in GitHub Desktop.
Fixing so that GameCenter wont cause a rejection if not using gamecenter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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