//根据数据源里面的某些属性去掉重复的数据源
NSMutableArray *newGroupArray = [[NSMutableArrayalloc] init];
for(int i=0;i<[groupArraycount];i++ ){
MyItem *item = [groupArray objectAtIndex:i];
if(i==0){
[newGroupArrayaddObject:item];
continue;
}
for(int j=0;j<[newGroupArraycount];j++){
MyItem *item1 = [newGroupArrayobjectAtIndex:j];
if([item.IDisEqualToString:item1.ID])
break;
if(![item.IDisEqualToString:item1.ID]&&j==[newGroupArraycount]-1){
[newGroupArrayaddObject:item];
}
}
}