///匹配两个数组中的元素是否一致
//找到在arr2中不在数组arr1中的数据
NSArray *titles = @[];
NSPredicate * filterPredicate1 = [NSPredicate predicateWithFormat:@"NOT (SELF IN %@)",titles];
NSArray* filter1 = [titles filteredArrayUsingPredicate:filterPredicate1];
//找到在arr1中不在数组arr2中的数据
NSPredicate* filterPredicate2 = [NSPredicatepredicateWithFormat:@"NOT (SELF IN %@)",titles];
NSArray *titles1 = @[];
NSArray * filter2 = [titles1 filteredArrayUsingPredicate:filterPredicate2];
//拼接不同的元素数组
NSMutableArray*array = [NSMutableArray arrayWithArray:filter1];
[array addObjectsFromArray:filter2];
if(array.count>0) {
///不同的数组内容。
}