Can I manually prompt the user to log in to Game Center on iOS 7?
问题 According to Apple's Game Center programming guide, this code sets up an authentication handler. If you run this at the beginning of your game, the first time you run it , it will prompt the user to log in if they haven't yet. - (void)authenticateLocalPlayer { GKLocalPlayer *localPlayer = [GKLocalPlayer localPlayer]; localPlayer.authenticateHandler = ^(UIViewController *viewController, NSError *error){ if (viewController != nil) { NSLog(@"Player not authenticated."); } else if (localPlayer