标签:
NSArray * arr1 = @[@a,@b,@c];
NSArray * arr2 = @[@c,@d,@e,@f];
NSPredicate * filterPredicate = [NSPredicate predicateWithFormat:@" (SELF IN %@)",arr1];
NSArray * filter = [arr2 filteredArrayUsingPredicate:filterPredicate];
NSLog(@"%@",filter);
标签:
原文地址:http://blog.csdn.net/baidu_22932825/article/details/44828493