Reuse UICollectionViewCell inside UITableView
I already have an existing nib inheriting from UITableViewCell
which I am reusing in multiple UITableView
s. If I create UICollectionView
, can this nib be reused in some way or do I need to recreate a new one inheriting from UICollectionViewCell
?
+3
Oren
source
to share
1 answer
If you look at the headers UICollectionViewCell and UITableViewCell, you can see that they are not subclasses of the common base class. Therefore, you cannot use TableCells instead of CollectionCells. You will need to create a new CollectionCell.
+1
wolffan
source
to share