开发者

How to know which cell is tapped

开发者 https://www.devze.com 2023-02-11 13:23 出处:网络
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 h开发者_如何学JAVAave the tableView object with me.use delegate\'s method ta

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 h开发者_如何学JAVAave the tableView object with me.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消