How can I detect a particular area tapped of a tableView cell porgrmatically?
For example, if the user taps the left half of the tableView Cell, didSelectRowAt is called and recognizes the left half of the cell.
Pseudo:
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
print("Entire cell tapped")
if(left side of cell pressed){
//cell.width /2
print("left side half of cell pressed")
}
}
CodePudding user response: