When didSelectRowAtIndexPath is called, it’s easy to get a cell’s text value using:
UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];
entryText = cell.textLabel.text;
However, I’m having a problem figuring out how to get the cell text value from another row at the same time. For instance, if a user clicks on row 0, the above will get me the cell text from row 0. But I need to get the cell text from row 1 and row 2.
How do I do that?
If you create your own IndexPath variable for those cells, for example:
That should do the trick.