Custom headers are not removed from UITableView
| Originator: | davbeck | ||
| Number: | rdar://14931150 | Date Originated: | 06-Sep-2013 11:33 AM |
| Status: | Open | Resolved: | |
| Product: | iOS SDK | Product Version: | iOS 6 SDK, running on iOS 7 |
| Classification: | Serious Bug | Reproducible: | Always |
Summary: When using custom section headers with a UITableView, reloading the table view can cause the headers to not be removed, while the new ones are still added. Steps to Reproduce: See example project. 1. Load the table with data. 2. Animate a change to the data. 3. Before the animation finishes, call reloadData. It does not matter if the data changes between 2 and 3, but changing the data makes the effect more obvious, especially for non opaque views. Expected Results: The tableView should handle this situation without buggy behavior, either by waiting for the animation to complete before reloading, stopping the animation in flight, or some other method. In particular, this is a regression from iOS 6. Actual Results: Some headers will remain visible in addition to the new headers.
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!