When animating UITableView header changes, layout not updated

Originator:kylealanhale
Number:rdar://14868421 Date Originated:29-Aug-2013 09:20 AM
Status:Open Resolved:
Product:iOS SDK Product Version:6, 7
Classification:UI/Usability Reproducible:
 
29-Aug-2013 09:20 AM Kyle Hale:
Summary:
If I animate the size of the table view's tableHeaderView, the size of the header changes fine, but the layout of the rest of the table view doesn't adjust accordingly.

Steps to Reproduce:
1. Create a table view in a story board and add a UIView as a header
2. In code, change the size of the table view's tableHeaderView, inside an animation block
3. Observe that the size of the header changes, but the cells of the table view remain where they were before the animation

Expected Results:
I expect the table view cells to adjust their position to allow for the header view's size change.

Actual Results:
The table view cells retained their old position.
Describe circumstances where the problem occurs or does not occur, such as software versions and/or hardware configurations.

Notes:
It can currently be worked around by re-assigning the tableHeaderView property inside of the animation block; this seems to trigger a layout update. setNeedsLayout does not work, which was my first try.

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!