0

I have a UICollectionView with custom cells, and I want to add a header. I've clicked the option in the Interface Builder and I can place a UILabel in that header, but the label will not show up when I build, compile/run the app. How can I get it to show?

Derry
  • 371
  • 1
  • 13

2 Answers2

1

Here you can check out my answer I put here, It's adding a label to a UICollectionView header. Should give you a good idea how to achieve what you're looking for. Swift 3: Cant programmatically create label on Collectionview header properly?

antdwash
  • 516
  • 4
  • 10
0

You have to add an custom ID in Interface Builder Identifier field. add custom header to collection view swift

feca
  • 1,119
  • 16
  • 14