I had assumed that it would be easy to add a background image to a UICollectionViewCell
, but I am having trouble figuring it out. I have a border image like this that I want to add to every cell in my UICollectionView
.
border.png
I couldn't see an option to add it in the Interface Builder and I'm not sure which method to use on UICollectionViewCell
programmatically.
I have seen these similar questions:
- UICollectionView Cell with Image, change Background with click (image is already added)
- How to add a background image to UICollectionView that will scroll and zoom will cells (
UICollectionView
, notUICollectionViewCell
)