Skip to content

Instantly share code, notes, and snippets.

@typeoneerror
Created October 13, 2010 16:04
Show Gist options
  • Save typeoneerror/624344 to your computer and use it in GitHub Desktop.
Save typeoneerror/624344 to your computer and use it in GitHub Desktop.
// get current achievement from array as a description
GKAchievementDescription *achievement = (GKAchievementDescription *)[self.achievementsList objectAtIndex:row];
// set the cell's text to the title
cell.textLabel.text = achievement.title;
// check to see if achievement has been completed
if ([self.achievements objectForKey:achievement.identifier])
{
// get the achievement from the dictionary using the identifier
GKAchievement *theAchievement = [self.achievements objectForKey:achievement.identifier];
// more code...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment