You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
currentVisibleIndices is created from the range: _visibleIndices. Then immediately compared. It appears as though the comparison should be between newVisibleIndices and _visibleIndices.
Still working through the code, so don't want to make any changes I don't understand yet.
Class AQGridview.m
method: - (void) updateVisibleGridCellsNow;
starting about line: 1563
NSIndexSet * newVisibleIndices = [_gridData indicesOfCellsInRect: [selfgridViewVisibleBounds]];
BOOL enableAnim = [UIView areAnimationsEnabled];
[UIView setAnimationsEnabled:NO];
@try
{
// a couple of simple tests// TODO: if we replace _visibleIndices with an index set, this comparison will have to changeif ( ([_visibleCells count] != [newVisibleIndices count]) ||
([newVisibleIndices countOfIndexesInRange: _visibleIndices] != _visibleIndices.length) )
{
// something has changed. Compute intersections and remove/add cells as requiredNSIndexSet * currentVisibleIndices = [NSIndexSetindexSetWithIndexesInRange: _visibleIndices];
// index sets for removed and inserted itemsNSMutableIndexSet * removedIndices = nil, * insertedIndices = nil;
// handle the simple case first// TODO: if we replace _visibleIndices with an index set, this comparison will have to changeif ( [currentVisibleIndices intersectsIndexesInRange: _visibleIndices] == NO )
{
removedIndices = [[currentVisibleIndices mutableCopy] autorelease];
insertedIndices = [[newVisibleIndices mutableCopy] autorelease];
}
The text was updated successfully, but these errors were encountered:
currentVisibleIndices is created from the range: _visibleIndices. Then immediately compared. It appears as though the comparison should be between newVisibleIndices and _visibleIndices.
Still working through the code, so don't want to make any changes I don't understand yet.
Class AQGridview.m
method: - (void) updateVisibleGridCellsNow;
starting about line: 1563
The text was updated successfully, but these errors were encountered: