-1

I’m trying to make UICollection with 4 items which take all the place on the screen (then divide the screen automatically in 4 part : 2 x 2).

How can I do it ?

FlorianG
  • 77
  • 12

1 Answers1

0

How can I do it ?

The simple solution is to use the normal flow layout with 4 cells that are each about 1/4 the size of the screen. (You should actually be thinking about the window now, not the screen itself, so that your app will work correctly with split view.) UICollectionView lets you control the cell size and the borders between cells, so just figure out how much space you have and use that to calculate the cell size.

Community
  • 1
  • 1
Caleb
  • 124,013
  • 19
  • 183
  • 272