UICollectionViewCell contentView is not resized on iOS7

Originator:exsephiroth87
Number:rdar://18304730 Date Originated:11/09/2014
Status:Duplicate Resolved:No
Product:iOS SDK Product Version:iOS7
Classification:Serious Bug Reproducible:Always
 
Summary:
Using Xcode6 GM, building against iOS8 sdk, UICollectionViewCells resized using 

collectionView(collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAtIndexPath indexPath: NSIndexPath) -> CGSize

do not resize the contentView, thus breaking any auto layout done inside.

It works fine in iOS8, and it was fine in iOS7 until beta7, this is a new behaviour and quite serious

Steps to Reproduce:
Sample project attached

1. create a collection view
2. add some subviews to a cell
3. resize cells using the UICollectionViewDelegateFlowLayout


Expected Results:
Cell content view is resized, and subviews are also resized with auto layout

Actual Results:
On iOS7, contentView is not resized, and has the original cell size

Version:
iOS7

Notes:


Configuration:
Any device

Comments

Duplicate of rdar://18312246 (Closed)

By exsephiroth87 at Oct. 3, 2014, 10:17 a.m. (reply...)

The same situation occurs using custom layout and calculating content size - size is ignored and this one from storyboard is used.


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!