iOS Components and Frameworks: Understanding the Advanced Features of the iOS SDK
by Kyle Richter, Joe Keeley
The Achievement Cache
When a score is being submitted to Game Center, it’s simply a matter of sending the score in and having Game Center determine its value compared to previously submitted scores. However, achievements are a bit tricky; all achievements have a percentage complete value, and users can work toward completing an achievement over many days or even months. It is important to make sure that users don’t lose the progress they have already earned and that they continue to make steady progress toward their goals. This is solved by using an achievement cache to store all of the cloud achievement data locally and refresh it with each new session.
A new convenience method will need to be added to the ICFGameCenterManager class, as well ...
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