Today I’ll show you how to integrate Game Center into your game.

Check Snowman: Winter Puzzle on the App Store for more details.

Setting up the app for Game Center

Go to your project Capabilities tab and make sure that the Game Center is enabled.

Now import GameKit into your view controller. It must also conform to the GKGameCenterControllerDelegate protocol.

leaderboardID stores the identifier we will set in iTunes Connect in a moment.