Closed rvi closed 10 years ago
From Apple's document for - (UICollectionReusableView *)collectionView:(UICollectionView *)collectionView viewForSupplementaryElementOfKind:(NSString *)kind atIndexPath:(NSIndexPath *)indexPath
, it says
Return Value A configured supplementary view object. You must not return nil from this method.
The point is: You must not return nil for this method.
Thanks @chiahsien ! :+1:
That's not the code of the Layout (only the demo project). I updated my comment.
Thanks for the fix, and apologies for the delay in merging it back.
No problem ! Thanks for this awesome layout :)
Sent from my iPhone
On 16 févr. 2014, at 11:07, Niels de Hoog notifications@github.com wrote:
Thanks for the fix, and apologies for the delay in merging it back.
— Reply to this email directly or view it on GitHub.
This methods should return nil for no footer or no header:
And this method, declared in UICollectionViewDatasource (implemented in the Demo project) :
Note: The crash is not in this library, but in _createPreparedSupplementaryViewForElementOfKind: which is a private API of UICollectionView.