Filter array using NSPredicate


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

Snippet from a question I answered in StackOverflow.


Copy this code and paste it in your HTML
  1. NSPredicate *predicate = [NSPredicate predicateWithFormat:@"(issue_id == %i)", 2];
  2. NSArray *newArray = [youDictionaryArray filteredArrayUsingPredicate:predicate];

URL: http://stackoverflow.com/questions/3503141/nsdictionary-filtering-and-sorting/3503217#3503217

Report this snippet


Comments


You need to login to view comments.