NSPredicate 'OU' filtragem baseada em um NSArray de chaves

Considere o seguinte NSArray:

NSArray *dataSet = [[NSArray alloc] initWithObjects:
                 [NSDictionary dictionaryWithObjectsAndKeys:@"abc", @"key1", @"def", @"key2", @"hij", @"key3", nil], 
                 [NSDictionary dictionaryWithObjectsAndKeys:@"klm", @"key1", @"nop", @"key2", nil], 
                 [NSDictionary dictionaryWithObjectsAndKeys:@"qrs", @"key2", @"tuv", @"key4", nil], 
                 [NSDictionary dictionaryWithObjectsAndKeys:@"wxy", @"key3", nil], 
                 nil];

Eu sou capaz de filtrar essa matriz para encontrar objetos de dicionário que contêm ochave key1

// Filter our dataSet to only contain dictionary objects with a key of 'key1'
NSString *key = @"key1";
NSPredicate *key1Predicate = [NSPredicate predicateWithFormat:@"%@ IN self.@allKeys", key];
NSArray *filteretSet1 = [dataSet filteredArrayUsingPredicate:key1Predicate];
NSLog(@"filteretSet1: %@",filteretSet1);

Qual apropriadamente retorna:

filteretSet1: (
        {
        key1 = abc;
        key2 = def;
        key3 = hij;
    },
        {
        key1 = klm;
        key2 = nop;
    }
)

Agora, estou querendo filtrar o dataSet para objetos de dicionário contendoQUALQUER das chaves em um NSArray.

Por exemplo, usando a matriz:NSArray *keySet = [NSArray arrayWithObjects:@"key1", @"key3", nil]; Eu quero criar um predicado que retorna e matriz dequalquer objetos de dicionário que contêm 'key1'ou 'key3' (ou seja, neste exemplo, todos os objetos do dicionário seriam retornados, exceto pelo terceiro objeto - já que não contém 'key1'ou 'key3').

Alguma idéia de como eu conseguiria isso? Eu teria que usar um predicado composto?

questionAnswers(3)

yourAnswerToTheQuestion