Reloading the first UITableView row right after an empty section causes weird animation
| Originator: | hong.rich | ||
| Number: | rdar://18057956 | Date Originated: | 18-Aug-2014 |
| Status: | Open | Resolved: | |
| Product: | iOS | Product Version: | iOS 7.1 and iOS 8 |
| Classification: | Reproducible: | Always |
Summary: A sample project that demonstrates this behavior is attached. In this project, there's a simple table view with 3 sections. The middle section, Section 1, is intentionally left empty (contains 0 rows). Selecting any of the rows will reload the row selected with reloadRowsAtIndexPaths:withRowAnimation: The data store returns pre-determined data thus reloading a row shouldn't cause much to happen. Tapping on any of the rows beside "Section 2 Row 0" shows the expected behavior. Steps to Reproduce: Tap the first row in section 2 with the label: "Section 2 Row 0" Expected Results: Row is deselected and no other animation occurs just like tapping on any other row in that table. Actual Results: A weird animation happens with that row. The text appears to be positioned higher than it should be, then it animates into the correct position soon after. This behavior is different than tapping on any other row in the same table. Attachment: https://dl.dropboxusercontent.com/u/30096/EmptySection.zip
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!