systemLayoutSizeFittingSize returns incorrect height for UICollectionViewCells in iOS 8

Number:rdar://17958382 Date Originated:08-Aug-2014 01:03 PM
Status:Duplicate/17962954 Resolved:
Product:Developer Tools Product Version:Xcode6-Beta5 (6A279r)
Classification:Serious Bug Reproducible:Always
Calling systemLayoutSizeFittingSize on a UICollectionViewCell that has layout constraints that define a valid height returns 0 for the height.

The same layout works work fine for regular UIViews and also works fine in iOS7

Steps to Reproduce:
See sample code. A cell is loaded from a nib. The cell has a fixed height defined with a layout constraint. systemLayoutSizeFittingSize is called on the cell

Expected Results:
Run the sample app on an iOS 8 device or simulator and the call to the cell\s systemLayoutSizeFittingSize method should return a height of 100

Actual Results:
The call to systemLayoutSizeFittingSize should return a height of 0


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at 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!