Bounds of UICollectionViewCell are not correct the first time layoutSubviews() is called
| Originator: | yannick.loriot | ||
| Number: | rdar://27644391 | Date Originated: | 2016/08/01 |
| Status: | Open | Resolved: | |
| Product: | iOS SDK | Product Version: | iOS 10 |
| Classification: | Reproducible: | always |
Summary: I use custom UICollectionViewCell with auto layout constraints. With iOS 10 beta4 (and also beta3, I don't know for previous versions) when the layoutSubview() is called the subviews bounds are not set correctly. Indeed the cell bounds is correct, however the bounds for each subview seems to have default values. I have to scroll the collectionView to update the cell properly. Steps to Reproduce: 1. Open the project 2. Run the example (whatever the device) 3. The cells are "empty" (only orange background) Expected Results: Each cell should contains a green circle over the orange background. Actual Results: The cells are "empty" (only orange background) Version: iOS 10 - beta 3 and over Configuration: Simulators and iPad mini 2
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!