I want to add a tap gesture to every cell in a UITableView
that edits the content in it. The two ways to add a gesture are in code or through storyboard. I tried bo
You don't need to add gesture recognizer to achieve what you are doing.
UITableViewDelegate
method tableView:didSelectRowAtIndexPath:
to detect which row is tapped (this is what exactly your tapGesture
is going to do) and then do your desired processing.tableView:didEndDisplayingCell:forRowAtIndexPath:
just before returning the cell:cell?.selectionStyle = .None