UICollectionViewCell created in storyboard always has initial size of 50x50
| Originator: | sash | ||
| Number: | rdar://18823086 | Date Originated: | |
| Status: | Open | Resolved: | |
| Product: | Xcode | Product Version: | Version 6.1 6A1052d |
| Classification: | Serious Bug | Reproducible: | Always |
Summary: When adding collection view cells to a collection view in storyboard only the size of the cell's contentView changes to the specified item size. Size of the collection view cell itself stays standard 50 x 50 As a side effect, having auto layout inside of the cell crashes when cell is just created due to unsatisfiable constraints. It's easy to easy if you open storyboard as source code and look for an appropriate line in XML Steps to Reproduce: Please see the test project http://cl.ly/0V0d21453b3E for details. Running in debug mode shows auto layout crashes in the console. Expected Results: Cell size should be set to the same value as collection view's "Item size" and should be equal to cell's contentSize Actual Results: Cell size stays standard 50x50 and is being changed only after collection view layout gets a turn to update it.
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!