UITableView does not leave editing mode after swipe-to-delete gesture has been aborted

Originator:daniel.rinser
Number:rdar://19810907 Date Originated:12-Feb-2015 01:13 PM
Status:Open Resolved:
Product:iOS SDK Product Version:
Classification:UI/Usability Reproducible:Always
 
Summary:
When beginning the swipe-to-delete gesture on a table view cell, but then aborting it before it snaps into its final position (fully revealing the "Delete" button), the table view is still in editing mode afterwards. Edit mode is only left after tapping the table view again (anywhere).

Please see the attached sample project.

Steps to Reproduce:
1. Build and run attached example project
2. Slightly begin to swipe any cell
3. Before it snaps into its final state revealing the "Delete" button, release it so that the button disappears again
4. Observe the text on the cell and the state of the "Edit/Done" bar button

Expected Results:
- self.tableView.editing set back to NO
- [cell setEditing:NO animated:YES] is called
- the edit bar button item is set back to "Edit"

Actual Results:
- self.tableView.editing is still YES
- -setEditing:animated: is not called on the cell
- the edit bar button item is still showing "Done"

Only tapping the table view again causes the editing mode to be reset to NO.

Version:
iOS 8

Notes:
This seems to be a regression introduced in iOS8. Works as expected on iOS7.

Configuration:
Any device or simulator

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!