I want to enter edit mode when the user selects a cell (if not in edit mode) and exit edit mode when the user selects the selected cell (and is in edit mode, obviously). Everything works for me, except for this small problem: when the table view is not in edit mode and the user selects a cell, the cell is highlighted, and then immediately “deselects”, i.e. The selected background blinks and then disappears. I confirmed that immediately after calling setEditing:animated: selected tableview cell is zero. I want it to save the selected cell after calling setEditing:animated: Unfortunately, even calling selectRow:animated:scrollPosition: after setEditing:animated: does not select the cell correctly.
source share