I have a dictionary of dictionaries and I have retrieved from a plist.
Suppose the high hierarchy dictionary is COUNTRIES and each sub dictionary is a COUNTRY.
Each COUNTRY sub dictionary has keys like name, currency, population, flag, etc.
After retrieving the dictionary and its subs to a variable as in
NSMutableDictionary * countries = [NSMutableDictionary dictionaryWithContentsOfFile:path];
How do I check to see if a currency named "euros" is present there?
I mean, I am checking for a value in a key of a subdictionary... is it possible? How?
thanks in advance.
NOTE: It is a dictionary inside a dictionary, not an array inside a dictionary or a dictionary inside an array. Each sub dictionary is store inside the main dictionary using a number. So, inside sub dictionary #1 may be a dictionary which keys are, for example, France, euros, 30 million people.
I need to see if France sub dictionary is present inside the main dictionary.