UITableView delete animations are broken when deleting the last row

Originator:kemenaran
Number:rdar://15559022 Date Originated:29-Nov-2013 10:25 AM
Status:Duplicate Resolved:
Product:iOS SDK Product Version:7.1 (11D5099e)
Classification:Other Bug Reproducible:Always
 
Summary:

When using -[UITableView deleteRowsAtIndexPaths:withRowAnimation:] to delete the bottom-most row of a Table View, the Delete button and the cell content stays visible until the animation ends.

Steps to Reproduce:

1. Create a new iOS project from the project template "Master-Detail Application"
2. Open the Storyboard, select the Master View Controller and set the Table View style to "Grouped"
3. Run the app on the Simulator
4. Add a few rows by tapping the "+" button
5. Swipe the bottom-most row and tap the "Delete" button

Expected Results:

* The row deletion should be animated: the row should shrink to the top until not being visible anymore.

Actual Results:

* The row background and the Delete button stay visible over the table view background until the end of the animation. At the end of the animation, the cell disappears suddenly.

Notes:

It also seems that deleteRowsAtIndexPaths:withRowAnimation: doesn't honor the row animation parameter: the change is animated even when using UITableViewRowAnimationNone.

Comments

This seemed fixed in the latest iOS version.

Duplicate of rdar://13622457


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!