the data UITableView -> UITableViewCell -> UICollectionView -> UICollectionViewCell-> UICollectionView -> UICollectionViewCell
2. create a UICollectionView inside the UITableViewCellHeight will be calculated programatically and view i
我创建了一个collectionViewCell,它包含一个imageView和一个标签。然而,标签被设置为sizeToFit,因此它将根据内容调整大小。问题是,我似乎不能将collectionVieCell大小设置为单元格内内容的大小。下面是我的代码:自定义单元
@IBOutlet var mainImageView:UIImageViewcoll