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

Dragging a selected cell #76

Open
ynie opened this issue Oct 25, 2011 · 0 comments
Open

Dragging a selected cell #76

ynie opened this issue Oct 25, 2011 · 0 comments

Comments

@ynie
Copy link

ynie commented Oct 25, 2011

Hey, thanks for developing twui. I recently found a issue about the selected cell problem.

How to reproduce:
Select a cell and drag it into another row. After release the mouse, the cell with the old indexpath is selected.

I have to add the following code inside TUITableView+Cell.m to reset the _selectedCellIndexPath.


    if ([[self indexPathForCell:cell] isEqual:_selectedIndexPath]) {
      [_selectedIndexPath release];
      _selectedIndexPath = [targetIndexPath retain];
    }

Did I do something wrong? Maybe I don't have to do this hack?

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