Created
April 8, 2015 16:00
-
-
Save tlivings/4a5b7d49992710dbb4a5 to your computer and use it in GitHub Desktop.
Authenticate local player
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
- (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