You can access the NSIndexPath
of the UITableViewCell
selected by implementing the - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath;
method.
When you touch that cell to add a photo, it will fire that method. You can then access the row via the indexPath.row
argument.
edit
You should also not dequeue a cell yourself. You should acquire a cell by using tableView:cellForRowAtIndexPath:
Change
UITableViewCell *cell = [self.tableView dequeueReusableCellWithIdentifier:CellIdentifier forIndexPath:_indexForPicker];
to
UITableViewCell *cell = [self.tableView cellForRowAtIndexPath:[self.tableView indexPathForSelectedRow]];