twitter/twui — Issue #76: Dragging a selected cell
Author: ynie
Created: 2011-10-25 15:52:03+00:00
State: open

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?