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

Ribbit friends checkmark

Hi, When I edit the friend list I click on a user and it gets highlighted like the image here: https://www.dropbox.com/s/z0mkpidis3euydv/Screenshot%202014-05-25%2012.36.45.png

When I click the next user the last one I click becomes highlighted. Like the image below

https://www.dropbox.com/s/fuec5nt1czt1xfg/Screenshot%202014-05-25%2012.43.32.png

Have I done something wrong since it is not this way in the tutorial?

Thanks!

3 Answers

Make sure you have selected the method called:

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{}

and NOT

- (void)tableView:(UITableView *)tableView didDeselectRowAtIndexPath:(NSIndexPath *)indexPath{}

In the first method, also call this

    [self.tableView deselectRowAtIndexPath:indexPath animated:YES]

Hope this helps! :) (Based on your name - are you from Norway?)

Thanks! That worked. I must have tabbed too quickly when I wrote it. I am indeed from Norway :-)

Me too! :) Also, glad it worked out.

Made the same mistake too :-)

Thx for the help