Display the tableview row selected in NSLog

iphone, nslog, sdk, tableview

Solution

Implement didSelectRowAtIndexPath UITableview delegate and log the indexPath.row.

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

    NSLog(@"selected tableview row is %d",indexPath.row);
}

Problem

How can I display the cell selected from my tableview in NSLog?

Original source