Guys, I have table view which displays images so for any image tap opens the image in
didselectrowatIndexpath
So I wanted to add a long press gesture so I added
let longPressGesture = UILongPressGestureRecognizer(target: self, action: #selector(longPressed(_:)))
cell.baseview.addGestureRecognizer(longPressGesture)
But each time I press and hold image it is going to didselectrowat method and opening the image instead of going to method longpressed. Is there something I should change for long press gesture action ?