I want to enter edit mode when user selects a cell (if not in edit mode) and exit edit mode when user selects a selected cell (and is in edit mode, obviously). I have everything working except for this slight problem: When the table view is not in edit mode and the user selects a cell, the cell highlights but then immediately "deselects", ie. the selected background flashes and then disappears. I have confirmed that immediately after the call to setEditing:animated: the tableview's selected cell is nil. I want it to maintain its selected cell after the call to setEditing:animated: Unfortunately, even calling selectRow:animated:scrollPosition: after setEditing:animated: doesn't properly select the cell.
4
votes

UITableViewdoesn't even call the delegate methods-tableView:willDeselectRowAtIndexPath:and-tableView:didDeselectRowAtIndexPath:when the automatic deselection happens. - trss