AS
Size: a a a
AS
AS
v
let lpg = UILongPressGestureRecognizer(target: self, action: #selector(longTap))
tableView.addGestureRecognizer(lpg)
@objc func longTap(recognizer: UILongPressGestureRecognizer) {
if recognizer.state == UIGestureRecognizer.State.began {
let point = recognizer.location(in: self.view)
if let indexPath = tableView.indexPathForRow(at: point) {
// и тут работаешь с indexPath
}
}
}
AT
AT
AT
textView(_ textView: UITextView, shouldInteractWith
?