In iOS 6.0 +, this log will be displayed as soon as your localPlayer is authenticated, i.e. install
[GKLocalPlayer localPlayer].authenticateHandler = ^(UIViewController *viewController, NSError *error) { if (viewController != NULL) { // present the viewController now } else if ([GKLocalPlayer localPlayer].isAuthenticated) { NSLog(@"Already authenticated"); } else { NSLog(@"Not authenticated, disable GameCenter"); } };
and if necessary, submit a viewController to enter the GameCenter
pasql
source share