Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [GKAchievementDescription loadAchievementDescriptionsWithCompletionHandler:
- ^(NSArray *descriptions, NSError *error) {
- CCLOG(@"achivements loaded");
- if (error != nil) {
- NSLog(@"Error %@", error);
- } else {
- if (descriptions != nil){
- CCLOG(@"nb %i",descriptions.count);
- for (GKAchievementDescription* a in descriptions) {
- CCLOG(@"image %@ %@ %@", a.title, a.achievedDescription, a.image);
- [achievementsDescDictionary setObject: a forKey: a.identifier];
- }
- } else {
- CCLOG(@"descriptions empty");
- }
- }
- }];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement