iOS Components and Frameworks: Understanding the Advanced Features of the iOS SDK
by Kyle Richter, Joe Keeley
Going Further with Leaderboards
The focus of this chapter has been implementing leaderboards using Apple’s standard Game Center GUI; however, it is entirely possible to implement a customized leaderboard system within your app. In this section, a brief introduction will be given to working with raw GKScore values, as well as retrieving specific information from the Game Center servers.
The following method can be added to the ICFGameCenterManager. This method accepts four different arguments. The first, category, is the leaderboard ID set in iTunes Connect for the leaderboard that this request will pertain to. This is followed by withPlayerScore:, which accepts GKLeaderboarPlayerScopeGlobal or GKLeaderboarPlayerScopeFriendsOnly. TimeScope will ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access