November 2013
Intermediate to advanced
576 pages
19h 3m
English
Without being able to display the current progress of achievements to the user, they are next to useless. If required to present a custom interface for achievements, refer to the section “Going Further with Achievements.” The following method launches the combined Game Center View Controller that is new in iOS 6, as shown in Figure 4.3:
- (void)showAchievements{ [[GKGameCenterViewController sharedController] setDelegate:self]; [[GKGameCenterViewController sharedController] setViewState:GKGameCenterViewControllerStateAchievements]; [self presentViewController:[GKGameCenterViewController sharedController] animated:YES completion: nil];}
In the preceding method, used to launch ...
Read now
Unlock full access