没有为不同的屏幕大小指定collectionView单元格大小。
使用UICollectionViewDelegateFlowLayout的方法
func collectionView(_ collectionView: UICollectionView,
layout collectionViewLayout: UICollectionViewLayout,
sizeForItemAt indexPath: IndexPath) -> CGSize
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句