We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ad02112 + 5ff7848 commit 95d08f0Copy full SHA for 95d08f0
1 file changed
Classes/AQGridView.m
@@ -1510,6 +1510,15 @@ - (void) updateVisibleGridCellsNow
1510
[shifted shiftIndexesStartingAtIndex: [removedIndices firstIndex] by: 0 - (NSInteger)_visibleIndices.location];
1511
//NSLog( @"Removed indices relative to visible cell list: %@", shifted );
1512
1513
+ NSUInteger index=[shifted firstIndex];
1514
+ while(index != NSNotFound){
1515
+ NSLog(@"%i >= %i ?", index, [_visibleCells count]);
1516
+ if (index >= [_visibleCells count]) {
1517
+ [shifted removeIndex:index];
1518
+ }
1519
+ index=[shifted indexGreaterThanIndex: index];
1520
1521
+
1522
// pull out the cells for manipulation
1523
NSMutableArray * removedCells = [[_visibleCells objectsAtIndexes: shifted] mutableCopy];
1524
0 commit comments