Abhinav
Abhinav

Reputation: 38162

How to know which cell is tapped

How can I get the index path of the cell which has been selected from tableView?

I do not have the index path also. I only have the tableView object with me.

Upvotes: 1

Views: 133

Answers (1)

Max
Max

Reputation: 16709

use delegate's method tableView:didSelectRowAtIndexPath:
this is the only proper way of obtaining the selected cell.

Upvotes: 2

Related Questions