Ben_hawk
Ben_hawk

Reputation: 2486

Xcode 6 Autolayout- UITableView columns

I am trying to us the interface builder in Xcode 6 and auto layout to create a really basic data table with UITableView. It does not seem UITableView has any concept of columns so I created 6 labels in the header section and 6 labels in my cell. How can I align the labels in the cell up with the header labels and make them fill the screen?

Upvotes: 2

Views: 488

Answers (1)

Linuxios
Linuxios

Reputation: 35803

Despite it's name, UITableView is only meant for one-dimensional (list) data. iOS has a class for 2-dimensional data (UICollectionView), and there are many libraries for making more spreadsheet-like views.

Your options are either to use UICollectionView, a library, or change the format you display your data in.

Upvotes: 2

Related Questions