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 Build a Self-Destructing Message iPhone App Relating Users in Parse.com Adding the Edit Friends Screen

Chris Bracewell
Chris Bracewell
34 Points

Showing the usernames in table with Swift

Hi, I'm working through this tutorial in swift and converting as I go. I've managed to get the actual number of users into my table but can't seem to get the username from the object index path. The part I need to fill is..

override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {

    return cell

I also cannot get this piece of code to work either

override func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
    return allUsers?.count

Any help would be great, thanks

1 Answer

Chris, here is a full template for the social network application: Click Here.