Welcome guest

iOS API Documentation

Analytics, Level sharing, Playtomic.Leaderboards and more for iPhone, iPod and iPad games!

Version 1.2

Current as of 11/22/2011. If you see or have any problems let us know!

Setting up the iOS API

Add these frameworks to your game by clicking the project, then selecting the target -> build phases -> expanding Link Binary with Libraries.

  • libz.1.2.3.dylib (for iOS 4.x)
  • libz.1.2.5.dylib (for iOS 5.x)
  • CFNetwork.framework
  • MobileCoreServices.framework
  • SystemConfiguration.framework

Copy the Playtomic folder and everything in it to your game's folder.

Initialize the API and log the view

Before you do anything else you must initialize the API using your credentials from the dashboard. Once you have done that, you can log the view when the player opens your game or resumes it.

// Get your credentials from the Playtomic dashboard (add or select game then go to API page)
[[Playtomic alloc] initWithGameId:gameid andGUID:@"guid" andAPIKey: @"apikey"]; 
[[Playtomic Log] view];