0

I need to make a Layout like this, I think the best way to do this is with UICollectionViewFlowLayout, but I have not much experience with this component, most of my apps do using the Storyboard, I have seen several examples suggested in this ad but the problem is that most sizes assigned items randomly or automatically adjust the text, the need of fixed size within each item can go any content, image, text, video.

The numbers of the item are illustrative only, it can be any order

I hope someone can help me, sorry my English is not my native language

rmaddy
  • 314,917
  • 42
  • 532
  • 579

1 Answers1

0

I think the logic for that layout is probably too complex for UICollectionViewFlowLayout. In that case, you'll have to create a new layout that extends from UICollectionViewLayout and specify the layout of items using that class by overwriting the layoutAttributesForElementsInRect: method. There's a good tutorial from objc.io.

Edward Dale
  • 29,597
  • 13
  • 90
  • 129