iOS 8: UITableViewCellStyleValue1 cell's layout gets stale

Originator:tomabuct
Number:rdar://18362347 Date Originated:16-Sep-2014
Status:Open Resolved:
Product:iOS SDK Product Version:iOS 8.0 (12A365)
Classification:Serious Bug Reproducible:Always
 
Summary:
Create a UITableViewCell with style UITableViewCellStyleValue1. Pin another view to the right of its textLabel using Auto Layout constraints. The other view does not lay out correctly when textLabel's text changes.

Steps to Reproduce:
1. Create a UITableView with a 100 rows (enough to make the table view scroll)
2. Make a UITableViewCell subclass with style UITableViewCellStyleValue1 with a view pinned to the right of its textLabel using Auto Layout constraints
3. Run the app and scroll up and down the table view


Expected Results:
In each cell, the view is always to the right of textLabel


Actual Results:
In each cell, the view is no longer placed to the right of the textLabel after scrolling the table view


Version:
iOS 8.0 (12A365)

Notes:
the attached app repro's the issue described

Configuration:
iPhone 5s 16GB AT&T

Attachments:
'TableViewCellLabelLayoutBug.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!