I want to make my UICollectionView height automatically because the data inside the collection view cell is dynamic.
If i'm delegate the table view as tableView.rowHeight = UITableViewAutomaticDimension, it'll not call the cellForItemAtIndex. But if i delegate the table view height, it'll call func cellForItemAtIndex, but the size'll be static.
How to make that height automatically?