Thursday, April 19, 2012

NSMutableDictionary value lookup

What is a good way of looking through a NSMutableDictionary to see if there is a key that corresponds to another variable?



Lets say i have a NSString "test"
and a mutable dictionary that has some values and NSString keys for those values.



What would be a good way of reading through the dictionary values to see if any of its keys are "test".



Would i have to have a for loop to read through dictionary values or is there something already a part of NSDictionary object that will do this that I'm not seeing.





No comments:

Post a Comment