@Shubhank that i m receiving particular cell on long press
func handleLongPress(_ gestureRecognizer: UILongPressGestureRecognizer) { let p: CGPoint = gestureRecognizer.location(in: sendMessageTable) let indexPath: IndexPath? = sendMessageTable.indexPathForRow(at: p) if indexPath == nil { print("long press on table view but not on a row") } else if gestureRecognizer.state == .began { print("long press on table view at row \(indexPath?.row)")
let cellSend = sendMessageTable.cellForRow(at: indexPath!) as! SendMessageCell! cellSend?.selectionStyle = .default