Created
February 13, 2013 05:52
-
-
Save NikolaKirev/4942548 to your computer and use it in GitHub Desktop.
Filtering an array with NSPredicate
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSString *companyName =@”Apple”; | |
NSPredicate *predicate =[NSPredicate predicateWithFormat:@"company == %@", companyName]; | |
NSArray *filteredArray =[originalArray filteredArrayUsingPredicate: predicate]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment