I have a collectionView inside a tableViewCell
for example:
credit: How to use StoryBoard quick build a collectionView inside UITableViewCell
I would like to reload the collectionView when I update information.
I have put a print in the collectionView's cellForItemAtIndexPath to test if it is being called but it isn't. How can I get the collectionView to reload?
1st on tableview cell create this function:
then call it from
create tags for collection view with
indexPath.row
ofUITableView
and create an instance of theUICollectionView
using the tag and reload !I found out how! In my tableViewCell class I just need to link the collectionView as an outlet so in my tableViewCell's
cellForRowAtIndexPath
I just needed to callcell.collectionView.reloadData()