I am writing a custom flow layout for a UICollectionView. I can see and scroll the cells.
The problem is that I can\'t make the supplementary view for the section header
You need to implement layoutAttributesForElementsInRect: to return an attributes instance for each supplementary view (in addition to each cell):
Subclasses must override this method and use it to return layout information for all items whose view intersects the specified rectangle. Your implementation should return attributes for all visual elements, including cells, supplementary views, and decoration views.