Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

looping through an NSMutableDictionary

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

like image 955
Rupert Avatar asked Oct 12 '10 11:10

Rupert


1 Answers

A standard way would look like this

for(id key in myDict) {     id value = [myDict objectForKey:key];     [value doStuff]; } 
like image 144
Henrik P. Hessel Avatar answered Sep 21 '22 18:09

Henrik P. Hessel