I have a dictionary of dictionaries that is returned to me in JSON format
{
"neverstart": {
"color": 0,
"count": 0,
"uid": 32387,
"id": 73129,
"name": "neverstart"
},
"dev": {
"color": 0,
"count": 1,
"uid": 32387,
"id": 72778,
"name": "dev"
},
"iphone": {
"color": 0,
"count": 1,
"uid": 32387,
"id": 72777,
"name": "iphone"
}
}
I also have an NSArray containing the identifier needed for the element. for example [72777, 73129]
What I need is to get the id => name dictionary for the elements in the array. I know this is possible by iterating through an array and then iterating over all the values in the Dictionary and checking the values, but it seems like there should be a shorter method for this.
Excuse my ignorance as I am just trying to find my way around the iPhone SDK and learn Objective-C and Cocoa.
source
share