//resultArrM 数据原
//
_indexArray 过滤后的数据
//MYSelectAreaModel 模型
/* 重定义索引 */
- (void)sy_indexArray{
/* 索引数组 */ _indexArray=[[NSMutableArray alloc]init]; for (int i = 0; i < self.resultArrM.count; i++) { MYSelectAreaModel*item = self.resultArrM[i]; [_indexArray addObject:item.prefix]; } /* 自动去重 */ NSOrderedSet *orderNumSet = [NSOrderedSet orderedSetWithArray:_indexArray]; _indexArray = [NSMutableArray arrayWithArray:orderNumSet.array]; }

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-02-09
  • 2022-03-07
  • 2021-07-02
  • 2022-12-23
  • 2021-05-15
  • 2021-08-22
猜你喜欢
  • 2021-12-02
  • 2021-05-26
  • 2021-11-28
  • 2022-01-01
  • 2022-01-06
  • 2022-01-12
相关资源
相似解决方案