UITableView applies editing mode to nested UITableView

Originator:SaagarJha28
Number:rdar://30684893 Date Originated:23-Feb-2017 03:28 PM
Status:Open Resolved:
Product:iOS + SDK (UIKit) Product Version:iOS 10.3 (14E5239d)
Classification:UI/Usability Reproducible:
 
Area:
UIKit

Summary:
This is going to be difficult to describe, so I've attached a video of the issue and a sample project I hacked together to demonstrate the issue.

The situation: I have a UITableView containing another UITableView in its section header (the headerView is already taken up by a UISearchBar in my real app).

The issue: If editing is started in the outer UITableView while the inner UITableView is scrolled offscreen (by swiping on a cell to delete, for example), and then the inner UITableView is brought on the screen quickly by scrolling in editing mode (not pressing "Delete", and tapping on the top bar to scroll up), the inner UITableView enters editing mode as well. Again, see attachments.

Steps to Reproduce:
1. Run example project.
2. Scroll down a bunch so the header (inner) UITableView is offscreen.
3. Swipe on a UITableViewCell. Do not press Delete!
4. Tap on the top bar to quickly scroll up.
5. The inner UITableView has entered editing mode as well.

Expected Results:
The inner UITableView does not enter editing, since it should not be related to the outer one.

Actual Results:
Both UITableViews enter editing.

Version:
iOS 10.3 (14E5239d)

Notes:
If you need the full, production app, I can send the code for that too.

Configuration:
iOS Simulator, iPhone 5c AT&T

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!