Skip to content
Maciej Walczynski edited this page Oct 22, 2013 · 6 revisions
NSArray *names = @[@"Adam", @"Brittany", @"Charles", @"Diane", @"Eugene", @"Fannie", @"Gregory", @"Heather", @"Ishmael", @"Jennifer", @"Kenny", @"Lindsay", @"Marcus", @"Nina", @"Oscar", @"Paige"];
  1. NSArray (show different ways to create), arrayWith... @[] etc.
  2. Enumerate the array
  • for
  • fast enumeration
  • enumerate using block
  1. NSSet (differences to NSArray)
  • unordered
  • can't insert the same object twice
  • better performance (hashes)
  1. Substract from an NSSet
  2. Create a class to put into the NSSet with methods desciption isEqual hash
  3. Use the class to create a set of objects, try to see the difference
  4. NSMutableOrderedSet NSArray NSDictionary

Clone this wiki locally