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 trialgregdodd
8,124 PointsFriends do not add or get removed when clicked
I'm having a bit of trouble in that my friends are not being added or removed when clicked. For example, once you select the name you would like to have as a friend, you have to select an different one for the original name to appear in friends.. Also, my names are staying highlighted when clicked.
I have double checked everything and my code is the same as the videos. Could this be because of differences in the latest IOS/xcode?
1 Answer
Dave Ko
11,915 PointsMake sure that you selected / added the correct method.
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
// insert code here
{