I have a class TableViewCell
with your file .xib
.
In the cell that appears in .xib
I add a collectionView
inside.
How can I reference or use the collectionView
of this TableView cell to make use of the cells within the collectionView
?
Inside the function awakeFromNib()
I try to do the following:
self.collectionView.register(UINib.init(nibName: "CollectionViewCell",bundle: Bundle.main), forCellReuseIdentifier: "menu_collection_cell")
But I get the error:
"Can not invoke 'register' with an argument list of type '(UINibm forCellReuseIdentifier: String)"