Game Center integration with Sprite Kit?
问题 How can I use Game Center or the GameKit Framework with a Sprite Kit Xcode template? In Sprite kit, it uses Scenes; but normally to view the leaderboards for example you need to "presentModalViewController" but that is not possible in SKView. And how can I authenticate the player and all that other fun stuff in iOS 6. Thanks in advance! 回答1: you can authenticate like this [[GKLocalPlayer localPlayer] authenticateWithCompletionHandler:^(NSError *error) { if (error == nil) { static_setEnable(