Skip to content

Instantly share code, notes, and snippets.

@bonty
Created August 6, 2013 11:14
Show Gist options
  • Save bonty/6163631 to your computer and use it in GitHub Desktop.
Save bonty/6163631 to your computer and use it in GitHub Desktop.
NSArrayの中から指定した要素のNSDictionaryを取得する
// name = 'hoge' の index を取得
NSUInteger idx = [[array valueForKey:@"name"] indexOfObject:@"hoge"];
NSDictionary *dic = [array objectAtIndex:idx];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment