Dragging a selected cell #76

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

Comments

Projects
None yet
1 participant
@ynie

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 join this conversation on GitHub. Already have an account? Sign in to comment