Skip to content
This repository has been archived by the owner on Jan 18, 2023. It is now read-only.

Rows disappear while deleting if delete from down to up #19

Closed
buddax2 opened this issue Jun 27, 2011 · 1 comment
Closed

Rows disappear while deleting if delete from down to up #19

buddax2 opened this issue Jun 27, 2011 · 1 comment

Comments

@buddax2
Copy link

buddax2 commented Jun 27, 2011

I added possibility to remove rows from the list. After every removing the list is reloading. If remove rows from up to down everything is fine. But if remove rows from down to up all rows are disappear when all rows count is equal to visible rows count.

@buddax2
Copy link
Author

buddax2 commented Jul 8, 2011

This is how my friend solved this problem:

edit PXListView.m

replace method:
-(void)enqueueCell:(PXListViewCell*)cell
{

[_reusableCells addObject:cell];
[_visibleCells removeObject:cell];
[cell setHidden:YES];
}

by this:
-(void)enqueueCell:(PXListViewCell*)cell
{
if (!cell)
return;

[_reusableCells addObject:cell];
[_visibleCells removeObject:cell];
[cell setHidden:YES];
}

@buddax2 buddax2 closed this as completed Jul 8, 2011
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant