// Reset all the achievements for local player - (void)resetAchievements { [GKAchievement resetAchievementsWithCompletionHandler: ^(NSError *error) { if (!error) { [storedAchievements release]; storedAchievements = [[NSMutableDictionary alloc] init]; // overwrite any previously stored file [self writeStoredAchievements]; } else { // Error clearing achievements. } }]; }
source share