I'm starting with swift and I would like to make a vocabulary app, where you have 2 columns, but don't know which View to use. Neither Table View or Collection View have exactly two columns.
Asked
Active
Viewed 4,445 times
2 Answers
1
Using Table View
In Table View there is no delegate method to get columns. Either you need to use two table views side by side to make columns effect(But it's not recommended) or by customizing table view cell(i.e., placing two labels on a row).
Using Collection View
Refer this link: Specify row and column number for UICollectionView
This link also might useful for you :http://www.brianjcoleman.com/tutorial-collection-view-using-swift/

Community
- 1
- 1

Sivajee Battina
- 4,124
- 2
- 22
- 45
-
thanks, the first link helped – redike Apr 06 '15 at 10:22