When I try to put UICollectionCell
to UICollectionView
in Interface Builder I can't put it with unknown reasons. The cell is going to the tools bar without adding to UICollectionView
I am using:
Select The Collection View and go the Size inspector. In the Collection View section change the Cell Size to a width and height of 100 points. Drag a Label from the Object Library and place it on the Center of the Collection View Cell.
Only UICollectionView inside StoryBoard have UICollectionViewCell inside. If use XIB, create a new XIB with CellName.xib, add CollectionViewCell to it, specify name of UICollectionView custom class. After that use registerNib.
Sample code: https://github.com/lequysang/TestCollectionViewWithXIB
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With