0

i need to make a page like the main screen on iPhone with apps but make it buttons and also when i add a new button it will add it row like on the main screen menu . how i make it programmatically so it will know where to fit the new button

1 Answers1

0

You should have a look at UICollectionView with a FlowLayout. The Flow Layout will basically arrange all cells next to each other. If one line has no more space to fit the next element it will move the cell to the next line thereby creating a Home Screen like appearance.

Jens Meder
  • 3,757
  • 1
  • 21
  • 25