Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2019
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. [GKAchievementDescription loadAchievementDescriptionsWithCompletionHandler:
  2. ^(NSArray *descriptions, NSError *error) {
  3. CCLOG(@"achivements loaded");
  4. if (error != nil) {
  5. NSLog(@"Error %@", error);
  6.  
  7. } else {
  8. if (descriptions != nil){
  9. CCLOG(@"nb %i",descriptions.count);
  10. for (GKAchievementDescription* a in descriptions) {
  11. CCLOG(@"image %@ %@ %@", a.title, a.achievedDescription, a.image);
  12. [achievementsDescDictionary setObject: a forKey: a.identifier];
  13. }
  14. } else {
  15. CCLOG(@"descriptions empty");
  16. }
  17. }
  18. }];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement