Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@mikeabdullah
Created August 29, 2012 16:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikeabdullah/3515508 to your computer and use it in GitHub Desktop.
Save mikeabdullah/3515508 to your computer and use it in GitHub Desktop.
Fast enumeration of dictionary keys
for (id aKey in dictionary)
{
BOOL matches = ... // test if key meets requirements here
if (matches)
{
return [dictionary objectForKey:aKey];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment