If I understand correctly, the content of a UICollectionViewCell
should go inside its contentView
property and the background into backgroundView
.
Yet, when I drag a UICollectionViewCell
to Interface Builder there is no mention of contentView
or backgroundView
. If I add subviews, those will have the whole cell as its parent, not contentView
or backgroundView
.
What is the right way of defining a UICollectionViewCell
with IB, then?