UITableView multiple cell selection from ONE customTapGestureRecognizer
up vote
-2
down vote
favorite
My problem is that right now in my UITableViewDataSource, when I call a function to change the color of the background of the cell AND call another function, several other cells are having their colors changed too. So, when I press my "like" button on a cell, not only is my cell getting highlighted, cells farther down (Have to scroll down), also have their cell highlighted. If I scroll fast down and up, my originally highlighted cell is no longer highlighted (SOMETIMES) too. I'm currently using a UITableViewDataSource, and inserting into rows using their configuration cellForRowAt. I'm also dequeuing my preference cells with tableview.dequeueReusableCell. Here is my code: func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { let...