-1

Instead of having table cells that takes the entire width of the screen, I would like to have square table cell, so that I can have maybe 3 or 4 table cells per line. The table cell would also change its size on the vertical dimension.

Is it possible ?

Thanks !

2095377
  • 47
  • 2
  • 14

1 Answers1

1

You should use UICollectionView instead of UITableView.

Vlad Khambir
  • 4,313
  • 1
  • 17
  • 25
  • Thanks, can I have access to databases the same way as tableview ? – 2095377 Aug 09 '17 at 10:50
  • @IlanskyNaftali, UICollectionView methods are very similar to UITableView's. Just read this tutorial, it will help you: https://www.raywenderlich.com/136159/uicollectionview-tutorial-getting-started. – Vlad Khambir Aug 09 '17 at 10:52