Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS

Alex Taylor
Alex Taylor
2,758 Points

Customizing Table View Controller

Hi, I have just watched the section on customizing the table view controller, and I was wondering whether it was possible to create a table view with multiple columns to display data? and how you would go about doing this? It is something I am interested in for a project I am working on.

Any help would be much appreciated! Thanks, Alex

1 Answer

Holger Liesegang
Holger Liesegang
50,595 Points

Hi Alex,

UITableView doesn't support multiple columns but you can either use an UICollectionView instead or e. g. define a custom cell for an UITableView which then will contain the amount of UILabel's you need for the columns to show up.

Alex Taylor
Alex Taylor
2,758 Points

Thank you! I will look into the documentation for UICollectionView and see how I go!