looping through an NSMutableDictionary

Rupert picture Rupert · Oct 12, 2010 · Viewed 58.1k times · Source

How do I loop through all objects in a NSMutableDictionary regardless of the keys?

Answer

Henrik P. Hessel picture Henrik P. Hessel · Oct 12, 2010

A standard way would look like this

for(id key in myDict) {
    id value = [myDict objectForKey:key];
    [value doStuff];
}