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
miles fishman
Courses Plus Student 3,610 PointsMY didSelectRowForIndexPath tells me the prior table view when i hit it, not the current one?
is there something wrong here?
-(void)tableView:(UITableView *)tableView didDeselectRowAtIndexPath:(NSIndexPath *)indexPath
{
NSLog(@"%d",indexPath.row);
2 Answers
Stone Preston
42,016 Pointsit sounds like you implemented didDeselectRowAtIndexPath instead of didSelectRowAtIndexPath. double check you implemented the correct method
miles fishman
Courses Plus Student 3,610 PointsThank you so much, that totally was the problem, I have to review this syntax
miles fishman
Courses Plus Student 3,610 Pointsmiles fishman
Courses Plus Student 3,610 Pointslets say i hit row 2 , when i click the blogpost the first time when it builds nothing happens , but when i click another blogpost lets say row 4, then it shows up in my NSLog as "2", and is in that pattern of one behind