November 2013
Intermediate to advanced
576 pages
19h 3m
English
Sometimes, it is possible to piggyback two achievements off of each other, such as the next case when dealing with the Whack 100 and Whack 1000 achievements. Since both of these achievements are tracking the same type of objective (whacks) a more streamlined approach can be taken.
As with the other achievement hooks that have been implemented in this chapter, the first thing that is done is to create a reference to a GKAchievement. In the following example a reference to the larger of the two achievements is used. Since the largest achievement has more objectives to complete than it does percentage, it will be rounded down to the nearest multiple of 10. To help combat this problem, a ...
Read now
Unlock full access