Closed WendyLei closed 10 years ago
Currently no, but the only thing you'd have to do to use headers and footers is modify the -prepareLayout method to compute layout attributes for them and then have -layoutAttributesForElementsInRect and -layoutAttributesForItemAtIndexPath return them together with the cell's layout attributes.
Sorry, my mistake: not -layoutAttributesForItemAtIndexPath but add method -layoutAttributesForSupplementaryViewOfKind:atIndexPath: to TGL*Layout.
Also you'd need to register a UICollectionReusableView subclass or a UINib for your supplementary view in the view controller and dequeue them as needed in method -collectionView:viewForSupplementaryElementOfKind:atIndexPath:
Can I set header and footer in this collection view?