Xcode Version
: 10.3
I used xib to create a UIView
and added a UICollectionView
to the UIView
.
When I added UICollectionViewCell
, it didn't work. Means I can't drag UICollectionViewCell
into UICollectionView
The structure I want is like this
UIView(xib) -> UICollectionView(xib) -> UICollectionViewCell(xib)
Of course, I can add UICollectionViewCell
with code, but why doesn't it work with xib? Does anyone know the reason?
Thanks