I was getting the same error when I was trying to embed a UICollectionView
in a UITableView
. I was generating a new UICollectionView
in each UITableView
cell, but I did not put any constraints on the height of that UICollectionView
. So, when I put a constraint on the height, that error is gone!