Normaly, if we want to use UICollectionView, we must use an UICollectionViewController. But now I don’t want, so how can I use UICollectionView without an UICollectionViewController?
Normaly, if we want to use UICollectionView , we must use an UICollectionViewController .
Share
Of course you can use a
UICollectionViewwithout anUICollectionViewController.Just create a
UICollectionViewLayoutof your choice, and then callto create a new instance of
UICollectionView. Don’t forget to set the delegate and datasource of theUICollectionViewto your class, and implement theUICollectionViewDataSourceprotocol.Hope that helps.