I have a table view and don't know how to access the row number when the user presses one of the cells. The data of the table view is a small array and this is the closest I could come... In the IB, I control dragged the reusable cell to the view controller I push which works fine. I am unsure how to get the row number in a conditional like this...

```
 - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath      *)indexPath
 {
// A bunch of stuff is before this, but not important to the question
//-- > This line if([indexPath row] == 1) This doesn't work... any ideas?
{
    if(totalPoints < 10 && number != 0)
    {
        [self saveNumber:@"1"];
    }
    else if (totalPoints < 10 && attachment == 0)
    {
        [self saveData:@"1"];
        int newPnts = totalPoints + 1;
        [self savePoints:[NSString stringWithFormat: @"%d", newPnts]];
    }

```

Thanks