直接上代码
for (int i = 0; i < array.count; i++) {
NSString *datails = array[i];
NSMutableArray *valueArr = [NSMutableArray array];
[valueArr addObjectsFromArray:array];
[valueArr removeObjectAtIndex:i];
if ([valueArr containsObject:datails]) {
[JXAlert alertWithText:[NSString stringWithFormat:@"%@重复了",datails]];
return;
}
}