????///匹配兩個數(shù)組中的元素是否一致
? ? ? ? ? ? //找到在arr2中不在數(shù)組arr1中的數(shù)據(jù)
? ??????????NSArray *titles =? @[];
? ? ? ? ? ? NSPredicate * filterPredicate1 = [NSPredicate predicateWithFormat:@"NOT (SELF IN %@)",titles];
? ? ? ? ? ? NSArray* filter1 = [titles filteredArrayUsingPredicate:filterPredicate1];
? ? ? ? ? ? //找到在arr1中不在數(shù)組arr2中的數(shù)據(jù)
? ? ? ? ? ? NSPredicate* filterPredicate2 = [NSPredicatepredicateWithFormat:@"NOT (SELF IN %@)",titles];
????????????NSArray *titles1 = @[];
? ? ? ? ? ? NSArray * filter2 = [titles1 filteredArrayUsingPredicate:filterPredicate2];
? ? ? ? ? ? //拼接不同的元素數(shù)組
? ? ? ? ? ? NSMutableArray*array = [NSMutableArray arrayWithArray:filter1];
? ? ? ? ? ? [array addObjectsFromArray:filter2];
? ? ? ? ? ? if(array.count>0) {
? ? ? ? ? ? ? ? ///不同的數(shù)組內(nèi)容幸乒。
? ? ? ? ? ? }