UITableViewCell content subviews height not animating on iOS 10.x devices

Originator:yannick.loriot
Number:rdar://29063713 Date Originated:02/11/2016
Status:Open Resolved:
Product:iOS SDK Product Version:iOS 10
Classification:Other Bug Reproducible:Always
 
Summary:
This bug is seen on iOS 10.x (10.0.x and 10.1.x)

I have a tableview which expand cells when they are selected. To do so I track the selected cells and I call the `beginUpdates`/`endUpdates` methods inside an UIView animation block. The cell heights are given by the `heightForRowAt` delegate method.

Doing this animate properly the cell's frame, but the contentView's frame jumps immediately to the new position. There is no animation.

Steps to Reproduce:
In an XCode 8 project:

1. Create a table view
2. Add a view to one of the cells with edge constraints (or with autoresizing masks)
3. Animate the cell height change with beginUpdates/EndUpdates

Expected Results:
Cell, content view, and subview all animate the height change together.

Actual Results:
On iOS 10.x, the cell and subview are animated. The content view immediately jumps to the end position.

Version:
XCode 8.x / iOS 10.x

Notes:
With the given project example, run the TableViewCellHeightAnimation scheme with an iOS 10.x device or simulator and select a cell.

You should see the subview jumps directly to its end position.

Configuration:
iOS 10.x simulators and devices

Attachments:
'TableViewCellHeightAnimation.zip' was successfully uploaded.

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!