Plain UITableView incorrectly shows bottom separator after dynamic update of data

Originator:avedesk
Number:rdar://33093129 Date Originated:01-Jul-2017 12:15 PM
Status:Open Resolved:
Product:iOS + SDK Product Version:10
Classification:Other Bug Reproducible:Always
 
Summary:
When using a plain UITableView with headers, dynamically updating the data (inserting/deleting rows/sections etc), the last cell of each section that is currently visible will get an extra edge-to-edge separator on the bottom. This separator disappears when the cell is highlighted/unhighlighted.

Steps to Reproduce:
1. Create a plain UITableView that has headers and cells in different sections
2. use -insertRowsAtIndexPath:rowAnimation: to insert rows


Expected Results:
- Separators stay as-is, no extra separators are suddenly visible

Actual Results:
- The last cell of each section that is on-screen gets an extra bottom separator suddenly. This separator dispappears when the cell is highlighted and unhighlighted, making it look inconsistent.

Version:
10

Notes:
This has been happening since iOS7 it seems. From a quick debugging session, the code that runs after a dynamic insert which updates each cell, uses different logic than the one that displays cells simply.

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!