Upvote:2

Aprove answer
NSMutableArray *predicates = [NSMutableArray arrayWithCapacity:toFilterOutPaths.count];

for (NSString *filterOutPath in toFilterOutPaths) {
    NSPredicate *pred = [NSPredicate predicateWithFormat:@"NOT (href CONTAINS %@)", filterOutPath];
    [predicates addObject:predicate];
}

NSPredicate *compoundPredicate = [NSCompoundPredicate andPredicateWithSubpredicates:predicates];

toUpdateFiles = [toUpdateFiles filteredArrayUsingPredicate:compoundPredicate];

Credit Goes to: stackoverflow.com

Related question with same questions but different answers