Interface Builder erroneously warns about misplacement of a freeform UICollectionViewController's UICollectionView
| Originator: | nrith99 | ||
| Number: | rdar://30166431 | Date Originated: | 01/24/2017 |
| Status: | Open | Resolved: | |
| Product: | Xcode | Product Version: | 8.2.1 |
| Classification: | UI | Reproducible: | Always |
Area: Xcode Summary: When a UICollectionViewController's size is changed to Freeform, Interface Builder warns that the UICollectionView is misplaced, even though the collection view's size should be identical to the its view controller's size. Steps to Reproduce: 1. Open or create a storyboard in an iOS project. 2. Drag a UICollectionViewController from the Object Library onto the layout area. 3. In the UICollectionViewController's Attributes Inspector, change the size from Fixed to Freeform.x 4. In the UICollectionViewController's Size Inspector, change the height and width to something other than the default values. 5. Observe that there's now a warning in the view hierarchy, complaining that the collection view's expected height is 320 x 480, but the actual size is the freeform size of the view controller. Expected Results: Because the UICollectionView is the root view of a UICollectionViewController, its size should be identical to the UICollectionViewController. Actual Results: Interface Builder warns that the expected size of the collection view is 320 x 480 (regardless of which device size is being used to view the layout), but the actual size is the size that was set explicitly. Version: iOS simulator on iPad Air 10.2 Notes: Configuration: Mac OS X 10.11.6 (15G1212) Xcode 8.2.1 (8C1002) MacBook Pro (Retina, 15-inch, Late 2013) Attachments:
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!