Итак, я хочу, чтобы установить высоту UICollectionViewCell от cellForItemAtIndexPath
, а не изКак установить высоту UICollectionViewCell из cellForItemAtIndexPath?
func collectionView(collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAtIndexPath indexPath: NSIndexPath) -> CGSize {
Как я могу это сделать? Поэтому я хочу, чтобы дать высоту и ширину моих клеток в cellForItemAtIndexPath
, а не в collectionViewLayout: sizeForItemAtIndexPath