Skip to content

Conversation

@coneybeare
Copy link

#34

I added some preloading items to assist with views that grab content from the web. This prevents flickering for the most part, as long as the user swipes at a normal pace. It defaults to 0 items preloaded, other than any of the existing preloaded views from the visibleInidices

@vassily-fr
Copy link

You should also not unload view that are in preloading arrays :
//remove offscreen views
for (NSNumber *number in [_itemViews allKeys])
{
if (![visibleIndices containsObject:number] && ![preloadedIndices containsObject:number])
{
DLog(@"unloading view at index %@",number);
UIView *view = _itemViews[number];
[self queueItemView:view];
[view removeFromSuperview];
[_itemViews removeObjectForKey:number];
}
}

@fernandomatal
Copy link

Any updates about this? Sounds like a good idea.

Copy link

@lewis-smith lewis-smith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've been using this for a long time and it works fine and improves response time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants