Summary

This chapter introduced leaderboards in Game Center. We covered the benefits of using a leaderboard, as well as the two available types. We learned how to post a score and recover for any errors that occurred during posting. We also looked at the requirements of getting leaderboards up and running in your app, using either Apple's provided GUI or a custom one.

Throughout the chapter, we continued to build our GameCenterManager class, adding the required methods to post scores, retrieve scores both local and global, map playerIDs to GKPlayer objects, and display custom and built-in leaderboards.

You should now feel confident in adding a leaderboard to any existing or new iOS app. In the next chapter, we will explore all that Game Center ...

Get Beginning iOS Game Center and Game Kit: For iPhone, iPad, and iPod touch now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.