I am running into some odd issues with reordering table view cell. After reordering and clicking done (i.e. setEditing = false on the table view), one of the table view cells would always remain in editing mode while the rest reset back to normal (usually the one in close proximity to where the cell is moved from or to).
After some careful debugging, here is what I learned:
tableView setEditing:NO would iterate through the visible cells, first calling canEditRowAtIndexPath, then calling setEditing on the cell itself, and lastly the TableViewCell's willTransitionToState is called. The odd thing is, the indexPath for the cell that's in question is not being called, thereby leaving it in its original editing state.
Any idea what could be causing this behavior?