UITableView ignores first touch after edit when scrollEnabled = NO
I would love to understand why the first table cell selection after an edit is ignored when the UITableView has scrollEnabled set to NO.
I have attached a sample project that illustrates the problem.
Check out TableViewTouchEditIssueViewController's viewDidLoad.
To reproduce the problem in the example project:
- Swipe on Cell 0 to show the delete button.
- Touch anywhere outside the cell to cancel the edit.
- Touch on any cell, notice it's highlighted for a second (because it's being touched), but does not actually get selected.
- Touch another cell, this time it will stay selected.
- Now, change scrollEnabled to YES in viewDidLoad and *poof* problem solved.
Last edited by dparker; 10-14-2010 at 06:19 PM.
|