I have a UITableView comprised of custom UITableViewCells with some text and a button in them.
The cell’s allowSelection property is set to NO so that I can tap the button without selecting the cell.
I am trying to find a way to know which cell in the table was tapped when the button for that cell is pressed. Is there any way to do this???
Many thanks,
Brett
Use this if your
UIButtonis a direct subview of theUITableViewCell([cell addSubview:button];orcell.accessoryView = button;)Or if your
UIButtonis a subview of theUITableViewCell‘scontentView([cell.contentView addSubview:button];):