I have a plist that I want to get the contents of in a uipickerview.
I'm able to output the contents of the plist in the console using:
// Path to the plist (in the application bundle)
NSString *path = [[NSBundle mainBundle] pathForResource:
@"loa" ofType:@"plist"];
// Build the array from the plist
NSMutableArray *array2 = [[NSMutableArray alloc] initWithContentsOfFile:path];
// Show the string values
for (NSString *str in array2)
NSLog(@"--%@", str);
what I need to figure out is how to get this content into the UIPickerView.
I tried the following:
arrayPicker = [[NSMutableArray alloc] initWithArray:array2];
, but get an error: exception 'NSInvalidArgumentException', reason: '-[__NSCFDictionary isEqualToString:]: unrecognized selector sent to instance
thanks for any help