I have a tableView with rows that should be horizontally current collectionViews.
In my tableView cells there is one CollectionView inside them, and then I create them as follows:
override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell { let cell: MyTableViewCell = tableView.dequeueReusableCellWithIdentifier("MyTableViewCell", forIndexPath: indexPath) as! MyTableViewCell let nibName = UINib(nibName: "CollectionCell", bundle: nil) cell.collectionView.registerNib(nibName, forCellWithReuseIdentifier: "CollectionCell") cell.collectionView.dataSource = self cell.collectionView.delegate = self return cell }
I am trying to use a table view row of height-height, and I think this might cause problems. How to use UITableViewAutomaticDimension with internal collection views?
ios uitableview swift uicollectionview
Stefan kendall
source share