Autosizing Cells in UICollectionView (all in code)
问题 Using Swift-5.0, Xcode-10.2, iOS-12.2, There is an issue in my code while trying to achieve "autosizing" of cells in a UICollectionView (using UICollectionViewFlowLayout as its layout). The height of the cell is content-based (and unknown upfront) - therefore I try to get the cell's height to autosize (the "width" I don't care for now and can, for example, be set to frame.width ). Even tough, I only use one large UICollectionView-Cell for the example below, I would still like to keep