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

Clicking username in tableview cell and going to user's profile??

Hey guys , I have a table that pulls usernames from a particular query I ran,Now I'm wondering how do Implement a way when I click on a certain username in the table,it goes to that user's profile?

3 Answers

Mike,

How did you construct the original table view controller using the master detail template or a single view template? You will need an additonal view controller to show the user's proflle and connect the view controller that to the cell in the table view. Then implement the prepareForSegue method to pass data between the view controllers. You can create a new project using the master-detail template to see how this can be accomplished.

I created a view controller ,and I created an array so when I query all usernames in my parse.com database, the array populates with the usernames and then i display all of them in a table.

Im sorry lol,I started everything from a single view