Skip to content

Instantly share code, notes, and snippets.

@tlivings
Created April 8, 2015 16:00
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 tlivings/4a5b7d49992710dbb4a5 to your computer and use it in GitHub Desktop.
Save tlivings/4a5b7d49992710dbb4a5 to your computer and use it in GitHub Desktop.
Authenticate local player
- (void) authenticateLocalPlayer {
GKLocalPlayer *localPlayer = [GKLocalPlayer localPlayer];
[localPlayer authenticateWithCompletionHandler:^(NSError *error) {
if (localPlayer.isAuthenticated) {
//Maybe do something
}
}];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment