NSArray *array = @[@[@"jim",@"afd"], @[@"tom",@"adfdaf"],@[@"tom",@"sss"], @[@"jim",@"daf"]];
NSPredicate *pre = [NSPredicate predicateWithBlock:^BOOL(id evaluatedObject, NSDictionary *bindings) {
NSArray * arr = (NSArray * )evaluatedObject;
return [arr[0] isEqualToString:@"tom"];
}];
NSArray *aray = [array filteredArrayUsingPredicate:pre];
NSLog(@"%@",aray);
2017-12-18 15:39:37.104820+0800 NCITShow[500:54174] (
(
tom,
adfdaf
),
(
tom,
sss
)
)