Tableview automatic dimension might truncates labels until first cell reuse

Originator:oliver.drobnik
Number:rdar://22193223 Date Originated:7 Aug 2015
Status:Open Resolved:
Product:iOS Product Version:8.4
Classification:Serious Bug Reproducible:Always
 
Summary:
I have a cell that has a variable height label for the first line. I found that using automatic dimension some of the cells are sized incorrectly causing this label to be truncated. If I reloadData in viewDidAppear, the size becomes correct.

Steps to Reproduce:
1) Look at the two screen shots provided
2) Notice that in one the bold label shows the ...

The screen shot with the earlier time stamp is without the workaround, the one with the later time stamps has the reloadData as discussed.

Expected Results:
There should always be all lines visible of the text on the bold label

Actual Results:
Some cells (even off screen) get an incorrect size. Only if you reload the cells AFTER the view has appeared on screen the size becomes correct.

Version:
iOS 8.4

Notes:
I believe that this Stack Overflow question describes the same issue: http://stackoverflow.com/questions/27842764/uitableviewautomaticdimension-not-working-until-scroll

Configuration:
iPhone 6 Simulator with iOS 8.4

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!