Reloading Table View Cells while they are not in the view hierarchy uses incorrect constraint constants

Originator:bjtitus
Number:rdar://23384758 Date Originated:11/3/2015
Status:Open Resolved:
Product:iOS SDK Product Version:iOS 9.1(13B137)
Classification:UI/Usability Reproducible:Always
 
Summary:
When using reloadRowsAtIndexPaths while the table view is not in the hierarchy, constraints with constants specific to a size class choose the wrong constant value. (If you have a constraint with different constant for Regular-Regular size class and all others, the Regular-Regular constant will NOT be chosen on a Regular-Regular device after this is called)

Steps to Reproduce:
1. Call reloadRowsAtIndexPaths while view is not on screen

Expected Results:
Correct constraint constants should be used for the screen size

Actual Results:
Incorrect constraint constant is used for the screen size

Version:
iOS 9.1(13B137)

Notes:
Xcode Version 7.1 (7B91b)

Tried checking trait collection at different points and didn't see an incorrect trait collection being applied.

Configuration:
iPhone Simulator & iPhone 6s

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!