I have a nested NSDictionary of NSDictionaries.
I get the dictionaries in an NSArray *array and I iterate through them with for (NSDictionary *frame in array)
What I want is the name of the frame. For example [frame getName], is there any function for this?
If your array looks like this
Then you would use this to get the name:
However, if your dictionaries do not actually contain your frame’s name, then you’re out of luck (in an array, elements are stored using an index, not with a key).
Now, you’ve also referred to “nested NSDictionaries of NSDictionaries” above. If you have for example the following structure, where the name is the key in the outer dictionary:
Then you could use this: