https://github.com/tapwork/uicollectionviewcellheightbug
This demo project demonstrates the UICollectionView's height bug when returning a zero height for the 1st sections 1st row
https://github.com/tapwork/uicollectionviewcellheightbug
Last synced: 8 months ago
JSON representation
This demo project demonstrates the UICollectionView's height bug when returning a zero height for the 1st sections 1st row
- Host: GitHub
- URL: https://github.com/tapwork/uicollectionviewcellheightbug
- Owner: tapwork
- License: mit
- Created: 2014-08-25T16:08:57.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2018-11-30T09:22:42.000Z (over 7 years ago)
- Last Synced: 2023-03-10T21:07:45.283Z (over 3 years ago)
- Language: Objective-C
- Size: 978 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
UICollectionViewCell Height Bug
=========================
This demo project demonstrates the UICollectionViewCell's bug when the height of the 1st cell in 1st section is 0.0.
The bug occurs with the following setup:
* the UICollectionsView has 2 sections
* The 1st section has one row
* The 1st row has a height of 0.0
## Actual result
* The cells (in bounds) are NOT visible, but the collectionView can be scrolled, looks like that the cells are hidden
## Expected Result
* All cells with a height > 0 should be visible.
## Example
* Download demo project
* Toggle the schemes ShowBug, UseWorkaround

## Possible Workaround
Give the 1st section's row a minimum height of 0.1f
* I filed a bug report: rdar://18120029