2012-04-05 3 views

답변

2

애플은이 간단한 블록 방법으로 당신을 위해 아주 좋은 수 :

- (void) retrieveAchievmentMetadata { 
[GKAchievementDescription loadAchievementDescriptionsWithCompletionHandler: 
    ^(NSArray *descriptions, NSError *error) { 
     if (error != nil) 
      // process the errors 
     if (descriptions != nil) 
      // use the achievement descriptions. 
    }]; 
} 

당신은 다음 설명 배열에서 NSStrings을 추출 할 수 있습니다.

더 문서는 여기에이 주제에 있습니다 : http://developer.apple.com/library/ios/#DOCUMENTATION/NetworkingInternet/Conceptual/GameKit_Guide/Achievements/Achievements.html

난이 도움이되기를 바랍니다!

+0

설명 이름을 얻는 방법을 알고 계십니까? 거기에 배열이 있습니까? – Supertecnoboff