How to connect to iPhoneLB

At iPhoneLB.com, we strive to make it as simple as possible for you to create a fully functional leaderboard for your iPhone game.

We have a very simple web service interface that allows you to connect to and submit high scores. Follow the steps below to learn how to integrate your iPhone game with iPhoneLB


Step 1 - Register

Register for an account on iPhoneLB.com.


Step 2 - Add Your App

To start publishing high scores to iPhoneLB, you must first get an app key. To do this, head over to the my apps section and add your app. A key will then automatically be generated for you.


Step 3 - Create submitHighScore method

Actually, we have already created this method for you. Inside of you ApplicationDelegate.h file add the following code

Get Code


Now, implement this method by adding the following code to your ApplicationDelegate.m file:

Get Code


Make sure you replace the insert-your-app-key-here with the app key from the appropriate app that was generated on your My Apps screen.


Step 4 - Call The submitHighScore Method

Now that the code is in place, you can simply call the submitHighScore method

-

Get Code

That's it! You can now go to http://iphonelb.com/lb/app_name to view the leaderboard for your app. *Note: Leaderboards are updated every 20 minutes, so don't go crazy on the contact page until waiting for your data to post. If you still don't understand, try downloading the sample application.