This is my code but it does not log any keys or values
NSDictionary *d = @{
@"foo": @"bar",
@"abc": @"def"
};
for (NSString* key in d.allKeys) {
NSString *value = (NSString *)[d objectForKey:key];
NSLog(@"areacodedisplay: value = %@",value);
NSLog(@"areacodedisplay: key = %@",key);
}
How to get key and value from an NSDictionary
?