In UICollectionView, I want to give the whole section a uniform background color, instead of for a single cell or for the whole collection view.
I don't see any delegate method to do that, any suggestions?
This is a great tutorial for changing UICollectionView section color:
Basically, we will have to subclass UICollectionViewLayoutAttributes
, UICollectionReusableView
and UICollectionViewLayout
in order to create a instance UICollectionReusableView as section's background view.
This is his result:
Please follow the link for more details explanation.