Posted By

tomashcroft on 01/14/11


Tagged

array nsmutablearray


Versions (?)

xcode


 / Published in: Objective C
 

  1. listOfItems = [[NSMutableArray alloc] init];
  2.  
  3. //Add items
  4. [listOfItems addObject:@"Iceland"];
  5. [listOfItems addObject:@"Greenland"];
  6. [listOfItems addObject:@"Switzerland"];
  7. [listOfItems addObject:@"Norway"];
  8. [listOfItems addObject:@"New Zealand"];
  9. [listOfItems addObject:@"Greece"];
  10. [listOfItems addObject:@"Rome"];
  11. [listOfItems addObject:@"Ireland"];

Report this snippet  

You need to login to post a comment.