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
Naomi Touchet
11,300 PointsHow to print an array to a view controller?
I have an array of items--how can I print them out to a screen so that the user can scroll through and read all of the items?
Thanks, I appreciate any help!
Naomi Touchet
11,300 PointsSwift, thanks for checking!
Noah Teshu
14,555 PointsThere are a number of ways to do this, but one of the best would be to use a UITableView. There's a very good introduction to the idea here: http://teamtreehouse.com/library/build-a-blog-reader-iphone-app-2/rebuilding-from-scratch/adding-a-table-view-controller-class-2
It can be a little complicated at first, but it's an incredibly valuable tool for iOS developers.
This will also be helpful: http://www.weheartswift.com/how-to-make-a-simple-table-view-with-ios-8-and-swift/ https://developer.apple.com/library/ios/documentation/uikit/reference/UITableView_Class/index.html
Francisco Navarro
14,185 PointsFrancisco Navarro
14,185 PointsHi Naomi!
Which language? Swift or Objective-C?