So as titled, there're some situation that I found my cells not being displayed.
Here's a video to demonstrate the issue.
And there's the sample project.
I've a subclass of UICollectionViewFlowLayout. It happens that when I drag my cell across some point, my cell suddenly disappears.
In the log, I've make sure I returned the correct numbers of layout attributes in -layoutAttributesForElementsInRect:, however our UICollectionView returns an empty array for visibleCells
From my observation, is looks like if our layoutAttribute has one of the origin.x or origin.y becomes a negative value, UICollectionView seemed to consider it's out of bounds and not add to the view hierarchy.
I was wondering if anyone got any pointers for that. Appreciated any help.