Open MarcoMig opened 8 years ago
Hi @MarcoMig,
I'm not sure if this helps, but I had success using a nib approach:
let nib = UINib(nibName: "HeaderCollectionReusableView", bundle: nil) self.collectionView?.register(nib, forSupplementaryViewOfKind: CHTCollectionElementKindSectionHeader, withReuseIdentifier: "collectionHeader")
Don't forget to conform to protocol CHTCollectionViewDelegateWaterfallLayout.
func collectionView (collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout,
heightForHeaderInSection section: NSInteger) -> CGFloat
deinit { SDWebImageDownloader.shared.cancelAllDownloads() }
Thanks @pippo27
Hello, I have follows all the precedures to show the header but is not working. Here what I've done:
If I run the project with this options the app will crash within the "viewForSupplementaryElementOfKind" method.
To fix this error I had to register my header view in my viewDidLoad:
Now the app don't crash but as a result now I see a blank header.