- arrSelectId[i] 里边装的是下标数字
for (int i = 0; i < self.arrSelectId.count; i++) {
[self.arrDataSource removeObjectAtIndex:[self.arrSelectId[i] integerValue] - i];
}
[self.arrDataSource removeObjectAtIndex:[self.arrSelectId[i] integerValue] - i];
}
本文标题:iOS 数组一次性移除多个下标元素
本文链接:https://www.haomeiwen.com/subject/idawattx.html
网友评论