Video Tutorial: NSDictionary

Learn how to work with NSDictionary, including a discussion on how to use your own custom classes as keys. By Ray Wenderlich.

Leave a rating/review
Save for later


Hide contents

Video Tutorial: NSDictionary

0 mins


Your challenge is to add this code to the end of your project and implement the TOODs:

NSMutableDictionary *homelandDict = [NSMutableDictionary  
  dictionaryWithObjectsAndKeys:@"Ecuador", @"Felipe", 
  @"Candada", @"Greg", @"Netherlands", @"Matthijs", 
  @"Denmark", @"Kim", nil];
// TODO 1: Convert to literal syntax
// TODO 2: Add your own homeland
// TODO 3: Look up and print Matthijs's homeland
// TODO 4: Enumerate dictionary and print out all keys/values

Download demo code

Download challenge solution

Helpful links


Over 300 content creators. Join our team.