- Save your spreadsheet as a .CSV file
- Get a copy of this great little executable, PList Converter, and 'drag N drop' your .csv file into it
- Out pops a nicely formatted .plist file that you can drop into your Xcode project.
- Open the file in TextEdit and note the format of the XML file. In this case it is an ARRAY of DICTIONARIES. This is important for subsequent operations in Xcode
NSBundle *mainBundle = [NSBundle mainBundle];
NSURL *countriesArrayURL = [mainBundle URLForResource:@"WorldTestData" withExtension:@"plist"];self.countriesArray = [NSArray arrayWithContentsOfURL:countriesArrayURL];
Many thanks to Danilo Campos for the binary!