UITableView edit actions incorrectly displayed when they should not be

Originator:dloewenherz
Number:rdar://31627818 Date Originated:14-Apr-2017 10:48 AM
Status:Open Resolved:
Product:iOS + SDK Product Version:iOS 10.3.1
Classification:Serious Bug Reproducible:Always
 
Area:
UIKit

Summary:
A delete row action is displayed for all rows in a table view even when those rows have their edit action array set to "nil" in `tableView(:editActionsForRowAt)`.

Steps to Reproduce:
1. Download Radar4Apr2017.
2. Build and run.
3. Swipe Cell #0. Note that share and delete actions both appear, correctly.
4. Swipe any other cell.

Expected Results:
No edit actions appear.

Actual Results:
A delete edit action appears.

Version:
iOS 10.3.1

Notes:


Configuration:
iPhone SE 64GB T-Mobile

Attachments:
'Radar4Apr2017.zip' was successfully uploaded.

Comments

GitHub project available at https://github.com/dlo/Radar31627818

By dloewenherz at April 14, 2017, 3:51 p.m. (reply...)

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!