I have an array where the 'id' on which i want to filter the array exists at valueForKeyPath
'objectId' of each of its dictionaries. How to compare the predicates in ValueForKeyPath
.
Currently.. this predicate
NSPredicate * objIdPredicate = [NSPredicate predicateWithFormat:@"objectId = %@",obj];
NSArray * oneOrder = [array filteredArrayUsingPredicate:objIdPredicate];
is considering key and values of the array elements, not the ones at their ValueForKeyPath=@"objectId"