UITableView.reloadData() after custom UITableViewRowAction forces tableView in editing mode on iOS11

Originator:jkirsakmens
Number:rdar://33657559 Date Originated:Aug 1, 2017
Status:Open Resolved:
Product:UIKit / iOS + SDK Product Version:iOS11
Classification:UI/UX Reproducible:Always
 
Summary:
On iOS11 if custom UITableViewRowAction that lead requires tableView reload, after tableview reloadData() method is called, tableview switches to editing mode (with delete chevrons on the left visible).

Steps to Reproduce:
- run attached project
- swipe on any row
- use [Copy] action

Expected Results:
tableview data should be reloaded without any side effects.

Observed Results:
tableview data is reloaded but is switched into editing mode with delete chevrons visible on the left.

Version:
iOS 11.0/5A5327g

Notes:
Workaround is to force tableview out of editing with explicit call tableView.isEditing = false (that should not be necessary I suppose).
This was not an issue on iOS9, iOS10. 
Issue is also reproducible with IOS11 SDK / XCode 9 (beta 2).

Configuration:
iPad Pro 9.7 with iOS 11.0 (5A5327g), Xcode 8.3.3 with iOS 10.3 SDK

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!