views:

30

answers:

0
NSPredicate *pred = [NSPredicate  predicateWithFormat:@"firstname contains[cd] %@" argumentArray:firstNames];
NSArray *ar = [contactList filteredArrayUsingPredicate:pred];   

What I want is to filter the contact list matching the values in the firstNames array. But this always results one element even if there are multiple matches?