如何在此代码段中禁止显示警告?
for (NSDictionary *record in self.records) {
[deletedRows addObject:[NSIndexPath indexPathForRow:row inSection:RecordSection]];
row++;
}
答案 0 :(得分:2)
根本不使用快速枚举:
for (NSUInteger row = 0; row < [self.records count]; row++) {
[deletedRows addObject:[NSIndexPath indexPathForRow:row inSection:RecordSection]];
}
这是: