I'm trying to save an NSArray
of objects to NSUserDefaults
, but when I pull the NSArray
back out with getObject
it contains nothing.
I put a break point here to count objects and verify there are items in the array
[[NSUserDefaults standardUserDefaults] setObject:mappingResult.array forKey:kArrayOfFoundThings];
[[NSUserDefaults standardUserDefaults] synchronize];
Here is where I pull them out and the array says nothing is inside.
NSArray *allAmbulances = [[NSUserDefaults standardUserDefaults] objectForKey:kArrayOfFoundThings];