I want to filter an array from another array which contain custom objects. Below example of dictionary.
NSArray *ContactsArray = [mainArray valueForKey:@"phoneNumber"];
I have tried with
NSPredicate *predicate = [NSPredicate predicateWithFormat:@"phoneNumber IN %@",mainArray];
NSArray *ContactsArray = [array2 filteredArrayUsingPredicate:predicate];