How would I suppress the warning in this code snippet?
for (NSDictionary *record in self.records) {
[deletedRows addObject:[NSIndexPath indexPathForRow:row inSection:RecordSection]];
row++;
}
How would I suppress the warning in this code snippet?
for (NSDictionary *record in self.records) {
[deletedRows addObject:[NSIndexPath indexPathForRow:row inSection:RecordSection]];
row++;
}
Don't use fast enumeration at all:
for (NSUInteger row = 0; row < [self.records count]; row++) {
[deletedRows addObject:[NSIndexPath indexPathForRow:row inSection:RecordSection]];
}
This is: