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];


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.