UICollectionViewCell disappears when its lower-left corner extends beyond the lower-left corner of its containing UICollectionView

Originator:gmws82
Number:rdar://15316650 Date Originated:10/24/13
Status:Open Resolved:No
Product:iOS SDK Product Version:7.0
Classification:Bug Reproducible:Always
 
Summary:
A UICollectionViewCell will disappear from its containing UICollectionView when positioned such that both its left edge and bottom edge extend beyond the corresponding edges of the collection view. That is, if the cell's x origin is less than zero, and its y origin is greater than the collection view's height minus the cell's height, then the cell will disappear.

Steps to Reproduce:
1. Create a new empty iOS application in Xcode.
2. Create custom subclasses of both UICollectionViewLayout and UICollectionViewController.
3. In the app delegate, create an instance of the custom collection view controller using the custom collection view layout, and make it the root view controller.
4. Configure the collection view controller as the collection view's data source. (Only one cell is needed to illustrate the bug—make sure it is visible by, for instance, setting its background color to red.)
5. Configure the collection view layout to return the cell's layout attributes when needed and (again just to illustrate, taking scrolling out of the picture) make the collection view's contentSize equal to the size of the collection view itself.
6. Set the frame of the cell's layout attributes as described above, with its lower-left corner protruding beyond the lower-left corner of the collection view.
7. Build and run the app.

Expected Results:
The part of the cell which does not extend beyond the lower-left corner of the collection view will be visible, just as when the cell is positioned partially outside any other corner of the collection view.

Actual Results:
The cell is completely invisible when positioned in this way. It *is* visible when positioned similarly in any other corner, or with any *one* edge extending beyond the bounds of the collection view.

Version:
iOS 7.0.3 (11B511)

Configuration:
This occurs on my iPhone 5s running iOS 7.0.3 (11B511) when using Xcode 5 on a Macbook Pro with Retina Display running OS X 10.8.5.

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!