I have a TableView and a CollectionView in different ViewController. Now I am showing an exactly same cell in both of them. So I want to create a reusable cell for convenience and easy maintenance.
I tried to create a xib and set the custom class to an UITableViewCell
class, then I can register and load it in the UITableView
. However, I cannot reuse this xib in the UICollectionView
because CollectionView cannot load TableViewCell.
So my question is that is there any good way to make a reusable cell for both TableView and CollectionView?