NSMutableDictionary Loop


/ Published in: Objective C
Save to your folder(s)

Just a simple loop around a mutable dictionary object which I always seem to forget.


Copy this code and paste it in your HTML
  1. NSMutableDictionary* aDictionary = (initialized with some objects)
  2.  
  3. for (id theKey in aDictionary) {
  4. id anObject = [[aDictionary objectForKey:theKey] retain];
  5. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.