iPhone - How to determine in which cell a button was pressed in a custom UITableViewCell

后端 未结 10 1915
遥遥无期
遥遥无期 2021-01-01 15:45

I currently have a UITableView that is populated with a custom UITableViewCell that is in a separate nib. In the cell, there are two buttons that are wired to actions in th

10条回答
  •  时光取名叫无心
    2021-01-01 16:09

    You could use the tag property on the button to specify which row the button was created in, if you're not using tags for anything else.

提交回复
热议问题