It's not necessarily a question about your code, but I can't get collectionView: viewForSupplementaryElementOfKind: to be called at all. Is there any chance you could point at the right direction to have Headers added to your custom UICollectionView class?
note: I tried with different layout classes, without changing the controller class, and managed to have headers added, so it must come from the way CustomCollectionViewLayout operates (but I can't see why)
thanks!
Hello, and thanks for this great code!
I'm trying to add a header to the view, using the following:
then later, implement the delegate methods:
and in the layout class
It's not necessarily a question about your code, but I can't get collectionView: viewForSupplementaryElementOfKind: to be called at all. Is there any chance you could point at the right direction to have Headers added to your custom UICollectionView class? note: I tried with different layout classes, without changing the controller class, and managed to have headers added, so it must come from the way CustomCollectionViewLayout operates (but I can't see why) thanks!