iOS get specific UITableViewCell

后端 未结 5 1766
眼角桃花
眼角桃花 2021-01-23 16:55

I have a UIButton in a custom UITableViewCell. This button triggers an event when clicked.

[myButton addTarget:self action:@selector(b         


        
5条回答
  •  自闭症患者
    2021-01-23 17:22

    You can set tag to button when you are adding the buttons in table view cell. It will be better if you use same indexPath of able view cell. Then from [sender tag] you able to get the indexPath value.

提交回复
热议问题