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

MY 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);

lets 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

2 Answers

it sounds like you implemented didDeselectRowAtIndexPath instead of didSelectRowAtIndexPath. double check you implemented the correct method

Thank you so much, that totally was the problem, I have to review this syntax